/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 50635
 Source Host           : 127.0.0.1
 Source Database       : niushop

 Target Server Type    : MySQL
 Target Server Version : 50635
 File Encoding         : utf-8

 Date: 02/19/2019 21:29:21 PM
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
--  Table structure for `nc_cms_article`
-- ----------------------------
DROP TABLE IF EXISTS `nc_cms_article`;
CREATE TABLE `nc_cms_article` (
  `article_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章编号',
  `title` varchar(50) NOT NULL COMMENT '文章标题',
  `class_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文章分类编号',
  `short_title` varchar(50) NOT NULL DEFAULT '' COMMENT '文章短标题',
  `source` varchar(50) NOT NULL DEFAULT '' COMMENT '文章来源',
  `url` varchar(255) NOT NULL DEFAULT '' COMMENT '文章来源链接',
  `author` varchar(50) NOT NULL COMMENT '文章作者',
  `summary` varchar(140) NOT NULL DEFAULT '' COMMENT '文章摘要',
  `content` text NOT NULL COMMENT '文章正文',
  `image` varchar(255) NOT NULL DEFAULT '' COMMENT '文章标题图片',
  `keyword` varchar(255) NOT NULL DEFAULT '' COMMENT '文章关键字',
  `article_id_array` varchar(255) NOT NULL DEFAULT '' COMMENT '相关文章',
  `click` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文章点击量',
  `sort` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '文章排序0-255',
  `commend_flag` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '文章推荐标志0-未推荐，1-已推荐',
  `comment_flag` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '文章是否允许评论1-允许，0-不允许',
  `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0-草稿、1-待审核、2-已发布、-1-回收站',
  `attachment_path` text NOT NULL COMMENT '文章附件路径',
  `tag` varchar(255) NOT NULL DEFAULT '' COMMENT '文章标签',
  `comment_count` int(10) unsigned NOT NULL COMMENT '文章评论数',
  `share_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '文章分享数',
  `publisher_name` varchar(50) NOT NULL COMMENT '发布者用户名 ',
  `uid` int(10) unsigned NOT NULL COMMENT '发布者编号',
  `last_comment_time` int(11) DEFAULT '0' COMMENT '最新评论时间',
  `public_time` int(11) DEFAULT '0' COMMENT '发布时间',
  `create_time` int(11) DEFAULT '0' COMMENT '文章发布时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '文章修改时间',
  PRIMARY KEY (`article_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=6553 COMMENT='CMS文章表';

-- ----------------------------
--  Table structure for `nc_cms_article_class`
-- ----------------------------
DROP TABLE IF EXISTS `nc_cms_article_class`;
CREATE TABLE `nc_cms_article_class` (
  `class_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类编号 ',
  `pid` int(11) NOT NULL DEFAULT '0' COMMENT '上级分类',
  `name` varchar(50) NOT NULL COMMENT '分类名称',
  `sort` int(11) DEFAULT NULL,
  PRIMARY KEY (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1170 COMMENT='cms文章分类表';

-- ----------------------------
--  Table structure for `nc_cms_comment`
-- ----------------------------
DROP TABLE IF EXISTS `nc_cms_comment`;
CREATE TABLE `nc_cms_comment` (
  `comment_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '评论编号',
  `text` varchar(2000) NOT NULL COMMENT '评论内容',
  `uid` int(10) unsigned NOT NULL COMMENT '评论人编号',
  `quote_comment_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '评论引用',
  `up` int(10) unsigned NOT NULL COMMENT '点赞数量',
  `comment_time` int(10) unsigned NOT NULL COMMENT '评论时间',
  PRIMARY KEY (`comment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='CMS评论表';

-- ----------------------------
--  Table structure for `nc_cms_topic`
-- ----------------------------
DROP TABLE IF EXISTS `nc_cms_topic`;
CREATE TABLE `nc_cms_topic` (
  `topic_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '专题编号',
  `instance_id` int(10) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `title` varchar(255) NOT NULL COMMENT '专题标题',
  `image` varchar(255) NOT NULL DEFAULT '' COMMENT '专题封面',
  `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '专题状态  0草稿  1发布',
  `content` text NOT NULL COMMENT '专题内容',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`topic_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专题';

-- ----------------------------
--  Table structure for `ns_account`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account`;
CREATE TABLE `ns_account` (
  `account_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '账户ID',
  `account_profit` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '平台的总营业额',
  `account_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '平台资金总余额',
  `account_return` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '平台利润总额',
  `account_deposit` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '保证金总额',
  `account_order` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商城订单总额',
  `account_withdraw` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商城提现总额',
  `account_shop` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '店铺总余额',
  `account_shop_withdraw` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '店铺总提现',
  PRIMARY KEY (`account_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='商城资金统计';

-- ----------------------------
--  Table structure for `ns_account_assistant_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account_assistant_records`;
CREATE TABLE `ns_account_assistant_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `serial_no` varchar(50) NOT NULL DEFAULT '' COMMENT '流水号',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '对应金额',
  `account_type` tinyint(1) NOT NULL COMMENT '账户类型',
  `type_alis_id` int(11) NOT NULL COMMENT '关联ID',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='招商员支付记录';

-- ----------------------------
--  Table structure for `ns_account_order_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account_order_records`;
CREATE TABLE `ns_account_order_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `serial_no` varchar(50) NOT NULL DEFAULT '' COMMENT '流水号',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '对应金额',
  `account_type` tinyint(1) NOT NULL COMMENT '账户类型',
  `type_alis_id` int(11) NOT NULL COMMENT '关联ID',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='金额账户记录';

-- ----------------------------
--  Table structure for `ns_account_period`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account_period`;
CREATE TABLE `ns_account_period` (
  `period_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '账户ID',
  `period_year` int(10) NOT NULL COMMENT '账期年份',
  `period_month` int(10) NOT NULL COMMENT '账期月份',
  `account_profit` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期总营业额',
  `account_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期总发生余额',
  `account_return` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期利润总额',
  `account_deposit` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期保证金总额',
  `account_order` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期订单总额',
  `account_withdraw` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期店铺提现总额',
  `account_shop` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期店铺总发生额',
  `account_shop_withdraw` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '账期店铺总提现额',
  `start_time` int(11) DEFAULT '0' COMMENT '开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '结束时间',
  PRIMARY KEY (`period_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='商城账期结算表';

-- ----------------------------
--  Table structure for `ns_account_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account_records`;
CREATE TABLE `ns_account_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '对应金额',
  `account_type` tinyint(1) NOT NULL COMMENT '账户类型',
  `type_alis_id` int(11) NOT NULL COMMENT '关联ID',
  `is_display` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示',
  `is_calculate` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否参与计算',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1092 COMMENT='金额账户记录';

-- ----------------------------
--  Table structure for `ns_account_return_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account_return_records`;
CREATE TABLE `ns_account_return_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '金额',
  `return_type` int(11) NOT NULL DEFAULT '0' COMMENT '提成类型',
  `type_alis_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联id',
  `is_display` int(11) NOT NULL DEFAULT '0' COMMENT '是否显示',
  `is_calculate` int(11) NOT NULL DEFAULT '0' COMMENT '是否计算',
  `remark` varchar(255) NOT NULL DEFAULT '0' COMMENT '备注',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=910 COMMENT='平台的利润的记录';

-- ----------------------------
--  Table structure for `ns_account_withdraw_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account_withdraw_records`;
CREATE TABLE `ns_account_withdraw_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `serial_no` varchar(50) NOT NULL DEFAULT '' COMMENT '流水号',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '对应金额',
  `account_type` tinyint(1) NOT NULL COMMENT '账户类型',
  `type_alis_id` int(11) NOT NULL COMMENT '关联ID',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='金额账户记录';

-- ----------------------------
--  Table structure for `ns_account_withdraw_user_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_account_withdraw_user_records`;
CREATE TABLE `ns_account_withdraw_user_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `serial_no` varchar(50) NOT NULL DEFAULT '' COMMENT '流水号',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '对应金额',
  `account_type` tinyint(1) NOT NULL COMMENT '账户类型',
  `type_alis_id` int(11) NOT NULL COMMENT '关联ID',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员提现记录表';

-- ----------------------------
--  Table structure for `ns_attribute`
-- ----------------------------
DROP TABLE IF EXISTS `ns_attribute`;
CREATE TABLE `ns_attribute` (
  `attr_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商品属性ID',
  `attr_name` varchar(255) NOT NULL DEFAULT '' COMMENT '属性名称',
  `is_use` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否使用',
  `spec_id_array` varchar(255) NOT NULL DEFAULT '' COMMENT '关联规格',
  `sort` int(11) DEFAULT NULL,
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  `brand_id_array` varchar(255) NOT NULL DEFAULT '' COMMENT '关联品牌',
  PRIMARY KEY (`attr_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='商品相关属性';

-- ----------------------------
--  Table structure for `ns_attribute_value`
-- ----------------------------
DROP TABLE IF EXISTS `ns_attribute_value`;
CREATE TABLE `ns_attribute_value` (
  `attr_value_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '属性值ID',
  `attr_value_name` varchar(50) NOT NULL DEFAULT '' COMMENT '属性值名称',
  `attr_id` int(11) NOT NULL COMMENT '属性ID',
  `value` varchar(1000) NOT NULL DEFAULT '' COMMENT '属性对应相关数据',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '属性对应输入类型1.直接2.单选3.多选',
  `sort` int(11) NOT NULL DEFAULT '1999' COMMENT '排序号',
  `is_search` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否使用',
  PRIMARY KEY (`attr_value_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='商品属性值';

-- ----------------------------
--  Table structure for `ns_cart`
-- ----------------------------
DROP TABLE IF EXISTS `ns_cart`;
CREATE TABLE `ns_cart` (
  `cart_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '购物车id',
  `buyer_id` int(11) NOT NULL DEFAULT '0' COMMENT '买家id',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `shop_name` varchar(100) NOT NULL DEFAULT '' COMMENT '店铺名称',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  `goods_name` varchar(200) NOT NULL COMMENT '商品名称',
  `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品的skuid',
  `sku_name` varchar(200) NOT NULL DEFAULT '' COMMENT '商品的sku名称',
  `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品价格',
  `num` smallint(5) NOT NULL DEFAULT '1' COMMENT '购买商品数量',
  `goods_picture` int(11) NOT NULL DEFAULT '0' COMMENT '商品图片',
  `bl_id` mediumint(8) NOT NULL DEFAULT '0' COMMENT '组合套装ID',
  PRIMARY KEY (`cart_id`),
  KEY `member_id` (`buyer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1170 COMMENT='购物车表';

-- ----------------------------
--  Table structure for `ns_click_fabulous`
-- ----------------------------
DROP TABLE IF EXISTS `ns_click_fabulous`;
CREATE TABLE `ns_click_fabulous` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `uid` int(11) NOT NULL COMMENT '用户id',
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `goods_id` int(11) NOT NULL COMMENT '商品id',
  `create_time` int(11) DEFAULT '0' COMMENT '点赞时间',
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '点赞状态 0 未点赞 1 点赞',
  `number` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '数量',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='商品点赞记录表';

-- ----------------------------
--  Table structure for `ns_combo_package_promotion`
-- ----------------------------
DROP TABLE IF EXISTS `ns_combo_package_promotion`;
CREATE TABLE `ns_combo_package_promotion` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `combo_package_name` varchar(100) NOT NULL DEFAULT '' COMMENT '组合套餐名称',
  `combo_package_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '组合套餐价格',
  `goods_id_array` varchar(255) NOT NULL COMMENT '参与组合套餐的商品集合',
  `is_shelves` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否上架（0:下架,1:上架）',
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
  `original_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '原价,仅作参考商品原价所取为sku列表中最低价',
  `save_the_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '节省价,仅作参考不参与实际计算',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='组合套餐促销';

-- ----------------------------
--  Table structure for `ns_consult`
-- ----------------------------
DROP TABLE IF EXISTS `ns_consult`;
CREATE TABLE `ns_consult` (
  `consult_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '咨询编号',
  `goods_id` int(11) unsigned DEFAULT '0' COMMENT '商品编号',
  `goods_name` varchar(100) NOT NULL COMMENT '商品名称',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '咨询发布者会员编号(0：游客)',
  `member_name` varchar(100) NOT NULL DEFAULT '' COMMENT '会员名称',
  `shop_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '店铺编号',
  `shop_name` varchar(50) NOT NULL COMMENT '店铺名称',
  `ct_id` int(10) unsigned NOT NULL COMMENT '咨询类型',
  `consult_content` varchar(255) NOT NULL DEFAULT '' COMMENT '咨询内容',
  `consult_reply` varchar(255) NOT NULL DEFAULT '' COMMENT '咨询回复内容',
  `isanonymous` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0表示不匿名 1表示匿名',
  `consult_addtime` int(11) DEFAULT '0' COMMENT '咨询发布时间',
  `consult_reply_time` int(11) DEFAULT '0' COMMENT '咨询回复时间',
  PRIMARY KEY (`consult_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1638 COMMENT='咨询类型表';

-- ----------------------------
--  Table structure for `ns_consult_type`
-- ----------------------------
DROP TABLE IF EXISTS `ns_consult_type`;
CREATE TABLE `ns_consult_type` (
  `ct_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '咨询类型id',
  `ct_name` varchar(50) NOT NULL DEFAULT '' COMMENT '咨询类型名称',
  `ct_introduce` text NOT NULL COMMENT '咨询类型详细介绍',
  `ct_sort` int(11) DEFAULT NULL,
  PRIMARY KEY (`ct_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='咨询类型表';

-- ----------------------------
--  Table structure for `ns_coupon`
-- ----------------------------
DROP TABLE IF EXISTS `ns_coupon`;
CREATE TABLE `ns_coupon` (
  `coupon_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '优惠券id',
  `coupon_type_id` int(11) NOT NULL COMMENT '优惠券类型id',
  `shop_id` int(11) NOT NULL COMMENT '店铺Id',
  `coupon_code` varchar(255) NOT NULL DEFAULT '' COMMENT '优惠券编码',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '领用人',
  `use_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券使用订单id',
  `create_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '创建订单id(优惠券只有是完成订单发放的优惠券时才有值)',
  `money` decimal(10,2) NOT NULL COMMENT '面额',
  `state` tinyint(4) NOT NULL DEFAULT '0' COMMENT '优惠券状态 0未领用 1已领用（未使用） 2已使用 3已过期',
  `get_type` int(11) NOT NULL DEFAULT '0' COMMENT '获取方式1订单2.首页领取',
  `fetch_time` int(11) DEFAULT '0' COMMENT '领取时间',
  `use_time` int(11) DEFAULT '0' COMMENT '使用时间',
  `start_time` int(11) DEFAULT '0' COMMENT '有效期开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '有效期结束时间',
  PRIMARY KEY (`coupon_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=148 COMMENT='优惠券表';

-- ----------------------------
--  Table structure for `ns_coupon_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_coupon_goods`;
CREATE TABLE `ns_coupon_goods` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `coupon_type_id` int(11) NOT NULL COMMENT '优惠券类型id',
  `goods_id` int(11) NOT NULL COMMENT '商品id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=606 COMMENT='优惠券使用商品表';

-- ----------------------------
--  Table structure for `ns_coupon_type`
-- ----------------------------
DROP TABLE IF EXISTS `ns_coupon_type`;
CREATE TABLE `ns_coupon_type` (
  `coupon_type_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '优惠券类型Id',
  `shop_id` int(11) NOT NULL DEFAULT '1' COMMENT '店铺ID',
  `coupon_name` varchar(50) NOT NULL DEFAULT '' COMMENT '优惠券名称',
  `money` decimal(10,2) NOT NULL COMMENT '发放面额',
  `count` int(11) NOT NULL COMMENT '发放数量',
  `max_fetch` int(11) NOT NULL DEFAULT '0' COMMENT '每人最大领取个数 0无限制',
  `at_least` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '满多少元使用 0代表无限制',
  `need_user_level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '领取人会员等级',
  `range_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '使用范围0部分产品使用 1全场产品使用',
  `is_show` int(11) NOT NULL DEFAULT '0' COMMENT '是否允许首页显示0不显示1显示',
  `start_time` int(11) DEFAULT '0' COMMENT '有效日期开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '有效日期结束时间',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `update_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`coupon_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1365 COMMENT='优惠券类型表';

-- ----------------------------
--  Table structure for `ns_customer_service`
-- ----------------------------
DROP TABLE IF EXISTS `ns_customer_service`;
CREATE TABLE `ns_customer_service` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单id',
  `order_no` varchar(255) NOT NULL DEFAULT '' COMMENT '订单编号',
  `order_goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单项id',
  `goods_name` varchar(50) NOT NULL DEFAULT '' COMMENT '商品名称',
  `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT 'skuID',
  `sku_name` varchar(50) NOT NULL DEFAULT '' COMMENT 'sku名称',
  `price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '商品价格',
  `goods_picture` int(11) NOT NULL DEFAULT '0' COMMENT '商品图片',
  `num` varchar(255) NOT NULL DEFAULT '' COMMENT '购买数量',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `buyer_id` int(11) NOT NULL DEFAULT '0' COMMENT '购买人ID',
  `order_type` int(11) NOT NULL COMMENT '订单类型',
  `refund_money` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '退款金额',
  `refund_way` varchar(255) NOT NULL DEFAULT '' COMMENT '退款方式  退款退货',
  `refund_reason` varchar(255) NOT NULL DEFAULT '' COMMENT '退款原因',
  `audit_status` int(11) NOT NULL DEFAULT '0' COMMENT '审核状态',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间',
  `audit_time` int(11) NOT NULL DEFAULT '0' COMMENT '审核时间',
  `order_from` varchar(255) NOT NULL DEFAULT '' COMMENT '订单来源',
  `receiver_province` varchar(255) NOT NULL DEFAULT '' COMMENT '收货人所在省',
  `receiver_city` varchar(255) NOT NULL DEFAULT '' COMMENT '收货人所在城市',
  `receiver_district` varchar(255) NOT NULL DEFAULT '' COMMENT '收货人所在街道',
  `receiver_address` varchar(255) NOT NULL DEFAULT '' COMMENT '收货人详细地址',
  `payment_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '支付类型。取值范围：...',
  `receiver_mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '收货人的手机号码',
  `shipping_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '订单配送方式',
  `goods_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品总价',
  `fixed_telephone` varchar(50) NOT NULL DEFAULT '' COMMENT '固定电话',
  `receiver_name` varchar(50) NOT NULL DEFAULT '' COMMENT '收货人姓名',
  `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '买家会员名称',
  `refund_shipping_code` varchar(255) NOT NULL DEFAULT '' COMMENT '退款物流单号',
  `refund_shipping_company` varchar(255) NOT NULL DEFAULT '' COMMENT '退款物流公司名称',
  `refund_balance_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单退款余额',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='售后记录表';

-- ----------------------------
--  Table structure for `ns_customer_service_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_customer_service_records`;
CREATE TABLE `ns_customer_service_records` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `order_goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单商品表id',
  `refund_status` varchar(255) NOT NULL DEFAULT '' COMMENT '操作状态 流程状态(refund_status)  状态名称(refund_status_name)  操作时间1 买家申请  发起了退款申请,等待卖家处理2 等待买家退货  卖家已同意退款申请,等待买家退货3 等待卖家确认收货  买家已退货,等待卖家确认收货4 等待卖家确认退款  卖家同意退款0 退款已成功 卖家退款给买家，本次维权结束-1  退款已拒绝 卖家拒绝本次退款，本次维权结束-2 退款已关闭 主动撤销退款，退款关闭-3 退款申请不通过 拒绝了本次退款申请,等待买家修改',
  `action` varchar(255) NOT NULL DEFAULT '' COMMENT '退款操作内容描述',
  `action_way` tinyint(4) NOT NULL DEFAULT '0' COMMENT '操作方 1 买家 2 卖家',
  `action_userid` varchar(255) NOT NULL DEFAULT '0' COMMENT '操作人id',
  `action_username` varchar(255) NOT NULL DEFAULT '' COMMENT '操作人姓名',
  `action_time` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='售后操作记录表';

-- ----------------------------
--  Table structure for `ns_express_company`
-- ----------------------------
DROP TABLE IF EXISTS `ns_express_company`;
CREATE TABLE `ns_express_company` (
  `co_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '表序号',
  `shop_id` int(11) NOT NULL COMMENT '商铺id',
  `company_name` varchar(50) NOT NULL DEFAULT '' COMMENT '物流公司名称',
  `express_no` varchar(20) NOT NULL DEFAULT '' COMMENT '物流编号',
  `is_enabled` int(11) NOT NULL DEFAULT '1' COMMENT '使用状态',
  `image` varchar(255) DEFAULT '' COMMENT '物流公司模版图片',
  `phone` varchar(50) NOT NULL DEFAULT '' COMMENT '联系电话',
  `orders` int(11) DEFAULT NULL,
  `express_logo` varchar(255) DEFAULT '' COMMENT '公司logo',
  `is_default` int(11) NOT NULL DEFAULT '0' COMMENT '是否设置为默认 0未设置 1 默认',
  PRIMARY KEY (`co_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=420 COMMENT='物流公司';

-- ----------------------------
--  Table structure for `ns_express_shipping`
-- ----------------------------
DROP TABLE IF EXISTS `ns_express_shipping`;
CREATE TABLE `ns_express_shipping` (
  `sid` int(11) NOT NULL AUTO_INCREMENT COMMENT '运单模版id',
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `template_name` varchar(255) NOT NULL DEFAULT '' COMMENT '模版名称',
  `co_id` int(11) NOT NULL DEFAULT '0' COMMENT '物流公司 id',
  `size_type` smallint(6) NOT NULL DEFAULT '1' COMMENT '尺寸类型 1像素px  2毫米mm',
  `width` smallint(6) NOT NULL DEFAULT '0' COMMENT '宽度',
  `height` smallint(6) NOT NULL DEFAULT '0' COMMENT '长度',
  `image` varchar(255) NOT NULL DEFAULT '' COMMENT '快递单图片',
  PRIMARY KEY (`sid`),
  KEY `IDX_express_shipping_co_id` (`co_id`),
  KEY `IDX_express_shipping_shopId` (`shop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=5461 COMMENT='运单模板';

-- ----------------------------
--  Table structure for `ns_express_shipping_items`
-- ----------------------------
DROP TABLE IF EXISTS `ns_express_shipping_items`;
CREATE TABLE `ns_express_shipping_items` (
  `sid` int(11) NOT NULL DEFAULT '0' COMMENT '运单模版id',
  `field_name` varchar(30) NOT NULL COMMENT '字段名称',
  `field_display_name` varchar(255) NOT NULL COMMENT '打印项名称',
  `is_print` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否打印',
  `x` int(11) NOT NULL DEFAULT '0' COMMENT 'x',
  `y` int(11) NOT NULL DEFAULT '0' COMMENT 'y',
  PRIMARY KEY (`sid`,`field_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=420 COMMENT='物流模板打印项';

-- ----------------------------
--  Table structure for `ns_express_shipping_items_library`
-- ----------------------------
DROP TABLE IF EXISTS `ns_express_shipping_items_library`;
CREATE TABLE `ns_express_shipping_items_library` (
  `Id` int(11) NOT NULL AUTO_INCREMENT COMMENT '物流模版打印项库ID',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `field_name` varchar(50) NOT NULL COMMENT '字段名',
  `field_display_name` varchar(50) NOT NULL COMMENT '字段显示名',
  `is_enabled` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否启用',
  PRIMARY KEY (`Id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1260 COMMENT='物流模版打印项库';

-- ----------------------------
--  Records of `ns_express_shipping_items_library`
-- ----------------------------
BEGIN;
INSERT INTO `ns_express_shipping_items_library` VALUES ('1', '0', 'A1', '订单编号', b'1'), ('2', '0', 'A2', '发件人公司', b'1'), ('3', '0', 'A8', '收件人姓名', b'1'), ('4', '0', 'A10', '收件人邮编', b'1'), ('5', '0', 'A4', '发件人姓名', b'1'), ('6', '0', 'A3', '发件人地址', b'1'), ('7', '0', 'A9', '收件人电话', b'1'), ('8', '0', 'A12', '代收金额', b'1'), ('9', '0', 'A5', '发件人电话', b'1'), ('10', '0', 'A6', '发件人邮编', b'1'), ('11', '0', 'A7', '收件人地址', b'1'), ('12', '0', 'A11', '货到付款物流编号', b'1'), ('13', '0', 'A13', '备注', b'1');
COMMIT;

-- ----------------------------
--  Table structure for `ns_gift_grant_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_gift_grant_records`;
CREATE TABLE `ns_gift_grant_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `gift_id` int(11) NOT NULL COMMENT '赠送活动ID',
  `goods_id` int(11) NOT NULL COMMENT '赠送商品ID',
  `goods_name` varchar(50) NOT NULL DEFAULT '' COMMENT '赠送商品名称',
  `goods_img` varchar(255) NOT NULL DEFAULT '' COMMENT '赠送商品图片',
  `num` int(11) NOT NULL DEFAULT '1' COMMENT '赠送数量',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '发放方式',
  `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '发放相关ID',
  `memo` text NOT NULL COMMENT '备注',
  `create_time` int(11) DEFAULT '0' COMMENT '赠送时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='赠品发放记录';

-- ----------------------------
--  Table structure for `ns_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods`;
CREATE TABLE `ns_goods` (
  `goods_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商品id(SKU)',
  `goods_name` varchar(100) NOT NULL DEFAULT '' COMMENT '商品名称',
  `shop_id` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '店铺id',
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品分类id',
  `category_id_1` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '一级分类id',
  `category_id_2` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '二级分类id',
  `category_id_3` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '三级分类id',
  `brand_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '品牌id',
  `group_id_array` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺分类id 首尾用,隔开',
  `promotion_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '促销类型 0无促销，1团购，2限时折扣',
  `promote_id` int(11) NOT NULL DEFAULT '0' COMMENT '促销活动ID',
  `goods_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '实物或虚拟商品标志 1实物商品 0 虚拟商品 2 F码商品',
  `market_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '市场价',
  `price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '商品原价格',
  `promotion_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品促销价格',
  `cost_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '成本价',
  `point_exchange_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '积分兑换类型 0 非积分兑换 1 只能积分兑换 ',
  `point_exchange` int(11) NOT NULL DEFAULT '0' COMMENT '积分兑换',
  `give_point` int(11) NOT NULL DEFAULT '0' COMMENT '购买商品赠送积分',
  `is_member_discount` int(1) NOT NULL DEFAULT '0' COMMENT '参与会员折扣',
  `shipping_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '运费 0为免运费',
  `shipping_fee_id` int(11) NOT NULL DEFAULT '0' COMMENT '售卖区域id 物流模板id  ns_order_shipping_fee 表id',
  `stock` int(10) NOT NULL DEFAULT '0' COMMENT '商品库存',
  `max_buy` int(11) NOT NULL DEFAULT '0' COMMENT '限购 0 不限购',
  `clicks` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品点击数量',
  `min_stock_alarm` int(11) NOT NULL DEFAULT '0' COMMENT '库存预警值',
  `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销售数量',
  `collects` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '收藏数量',
  `star` tinyint(3) unsigned NOT NULL DEFAULT '5' COMMENT '好评星级',
  `evaluates` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '评价数',
  `shares` int(11) NOT NULL DEFAULT '0' COMMENT '分享数',
  `province_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '一级地区id',
  `city_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '二级地区id',
  `picture` int(11) NOT NULL DEFAULT '0' COMMENT '商品主图',
  `keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '商品关键词',
  `introduction` varchar(255) NOT NULL DEFAULT '' COMMENT '商品简介，促销语',
  `description` text NOT NULL COMMENT '商品详情',
  `QRcode` varchar(255) NOT NULL DEFAULT '' COMMENT '商品二维码',
  `code` varchar(50) NOT NULL DEFAULT '' COMMENT '商家编号',
  `is_stock_visible` int(1) NOT NULL DEFAULT '0' COMMENT '页面不显示库存',
  `is_hot` int(1) NOT NULL DEFAULT '0' COMMENT '是否热销商品',
  `is_recommend` int(1) NOT NULL DEFAULT '0' COMMENT '是否推荐',
  `is_new` int(1) NOT NULL DEFAULT '0' COMMENT '是否新品',
  `is_pre_sale` int(11) DEFAULT '0',
  `is_bill` int(1) NOT NULL DEFAULT '0' COMMENT '是否开具增值税发票 1是，0否',
  `state` tinyint(3) NOT NULL DEFAULT '1' COMMENT '商品状态 0下架，1正常，10违规（禁售）',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `img_id_array` varchar(1000) DEFAULT NULL COMMENT '商品图片序列',
  `sku_img_array` varchar(1000) DEFAULT NULL COMMENT '商品sku应用图片列表  属性,属性值，图片ID',
  `match_point` float(10,2) DEFAULT NULL COMMENT '实物与描述相符（根据评价计算）',
  `match_ratio` float(10,2) DEFAULT NULL COMMENT '实物与描述相符（根据评价计算）百分比',
  `real_sales` int(10) NOT NULL DEFAULT '0' COMMENT '实际销量',
  `goods_attribute_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品类型',
  `goods_spec_format` text NOT NULL COMMENT '商品规格',
  `goods_weight` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '商品重量',
  `goods_volume` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '商品体积',
  `shipping_fee_type` int(11) NOT NULL DEFAULT '1' COMMENT '计价方式1.重量2.体积3.计件',
  `extend_category_id` varchar(255) DEFAULT NULL,
  `extend_category_id_1` varchar(255) DEFAULT NULL,
  `extend_category_id_2` varchar(255) DEFAULT NULL,
  `extend_category_id_3` varchar(255) DEFAULT NULL,
  `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供货商id',
  `sale_date` int(11) DEFAULT '0' COMMENT '上下架时间',
  `create_time` int(11) DEFAULT '0' COMMENT '商品添加时间',
  `update_time` int(11) DEFAULT '0' COMMENT '商品编辑时间',
  `min_buy` int(11) NOT NULL DEFAULT '0' COMMENT '最少买几件',
  `virtual_goods_type_id` int(11) DEFAULT '0' COMMENT '虚拟商品类型id',
  `production_date` int(11) NOT NULL DEFAULT '0' COMMENT '生产日期',
  `shelf_life` varchar(50) NOT NULL DEFAULT '' COMMENT '保质期',
  `goods_video_address` varchar(455) DEFAULT '' COMMENT '商品视频地址，不为空时前台显示视频',
  `pc_custom_template` varchar(255) NOT NULL DEFAULT '' COMMENT 'pc端商品自定义模板',
  `wap_custom_template` varchar(255) NOT NULL DEFAULT '' COMMENT 'wap端商品自定义模板',
  `max_use_point` int(11) NOT NULL DEFAULT '0' COMMENT '积分抵现最大可用积分数 0为不可使用',
  `is_open_presell` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否支持预售',
  `presell_time` int(11) NOT NULL DEFAULT '0' COMMENT '预售发货时间',
  `presell_day` int(11) NOT NULL DEFAULT '0' COMMENT '预售发货天数',
  `presell_delivery_type` int(11) NOT NULL DEFAULT '1' COMMENT '预售发货方式1. 按照预售发货时间 2.按照预售发货天数',
  `presell_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '预售金额',
  `goods_unit` varchar(20) NOT NULL DEFAULT '' COMMENT '商品单位',
  `trade_price` decimal(10,2) DEFAULT '0.00' COMMENT '批发价格',
  PRIMARY KEY (`goods_id`),
  KEY `UK_ns_goods_brand_id` (`brand_id`),
  KEY `UK_ns_goods_category_id` (`category_id`),
  KEY `UK_ns_goods_category_id_1` (`category_id_1`),
  KEY `UK_ns_goods_category_id_2` (`category_id_2`),
  KEY `UK_ns_goods_category_id_3` (`category_id_3`),
  KEY `UK_ns_goods_extend_category_id` (`extend_category_id`),
  KEY `UK_ns_goods_extend_category_id_1` (`extend_category_id_1`),
  KEY `UK_ns_goods_extend_category_id_2` (`extend_category_id_2`),
  KEY `UK_ns_goods_extend_category_id_3` (`extend_category_id_3`),
  KEY `UK_ns_goods_goods_attribute_id` (`goods_attribute_id`),
  KEY `UK_ns_goods_group_id_array` (`group_id_array`),
  KEY `UK_ns_goods_promotion_price` (`promotion_price`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16554 COMMENT='商品表';

-- ----------------------------
--  Records of `ns_goods`
-- ----------------------------
BEGIN;
INSERT INTO `ns_goods` VALUES ('1', '测试商品', '0', '1', '1', '0', '0', '0', '0', '0', '0', '1', '0.00', '10.00', '10.00', '0.00', '0', '0', '0', '0', '0.00', '0', '1000', '0', '6', '10', '0', '1', '0', '0', '0', '0', '0', '1', '', '', '<p>1111</p>', 'upload/goods_qrcode/goods_qrcode_1.png', '', '1', '0', '0', '0', '0', '0', '1', '0', '1', '', null, null, '0', '0', '[]', '0.00', '0.00', '3', '', '', '', '', '0', '1549117622', '1549117622', '1549198915', '0', '0', '0', '0', '', '', '', '0', '0', '0', '0', '1', '0.00', '', '11.00');
COMMIT;

-- ----------------------------
--  Table structure for `ns_goods_attribute`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_attribute`;
CREATE TABLE `ns_goods_attribute` (
  `attr_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `goods_id` int(11) NOT NULL COMMENT '商品ID',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `attr_value_id` int(11) NOT NULL COMMENT '属性值id',
  `attr_value` varchar(255) NOT NULL DEFAULT '' COMMENT '属性值名称',
  `attr_value_name` varchar(255) NOT NULL DEFAULT '' COMMENT '属性值对应数据值',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`attr_id`),
  KEY `UK_ns_goods_attribute_attr_value_id` (`attr_value_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=315 COMMENT='商品属性表';

-- ----------------------------
--  Table structure for `ns_goods_attribute_deleted`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_attribute_deleted`;
CREATE TABLE `ns_goods_attribute_deleted` (
  `attr_id` int(10) NOT NULL,
  `goods_id` int(11) NOT NULL COMMENT '商品ID',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `attr_value_id` int(11) NOT NULL COMMENT '属性值id',
  `attr_value` varchar(255) NOT NULL DEFAULT '' COMMENT '属性值名称',
  `attr_value_name` varchar(255) NOT NULL DEFAULT '' COMMENT '属性值对应数据值',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=315 COMMENT='商品属性回收站表';

-- ----------------------------
--  Table structure for `ns_goods_attribute_value`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_attribute_value`;
CREATE TABLE `ns_goods_attribute_value` (
  `attr_value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品属性值ID',
  `attr_id` int(11) NOT NULL COMMENT '商品属性ID',
  `attr_value` varchar(255) NOT NULL DEFAULT '' COMMENT '值名称',
  `is_visible` bit(1) NOT NULL DEFAULT b'1' COMMENT '是否可视',
  `sort` int(11) DEFAULT NULL,
  `create_time` int(11) DEFAULT '0',
  PRIMARY KEY (`attr_value_id`),
  KEY `IDX_category_propvalues_c_pId` (`attr_id`),
  KEY `IDX_category_propvalues_orders` (`sort`),
  KEY `IDX_category_propvalues_value` (`attr_value`),
  KEY `UK_ns_goods_attribute_value_attr_value_id` (`attr_value_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1092 COMMENT='商品规格值模版表';

-- ----------------------------
--  Table structure for `ns_goods_brand`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_brand`;
CREATE TABLE `ns_goods_brand` (
  `brand_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '索引ID',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `brand_name` varchar(100) NOT NULL COMMENT '品牌名称',
  `brand_initial` varchar(1) NOT NULL COMMENT '品牌首字母',
  `brand_pic` varchar(100) NOT NULL DEFAULT '' COMMENT '图片',
  `brand_recommend` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐，0为否，1为是，默认为0',
  `sort` int(11) DEFAULT NULL,
  `brand_category_name` varchar(50) NOT NULL DEFAULT '' COMMENT '类别名称',
  `category_id_array` varchar(1000) NOT NULL DEFAULT '' COMMENT '所属分类id组',
  `brand_ads` varchar(255) NOT NULL DEFAULT '' COMMENT '品牌推荐广告',
  `category_name` varchar(50) NOT NULL DEFAULT '' COMMENT '品牌所属分类名称',
  `category_id_1` int(11) NOT NULL DEFAULT '0' COMMENT '一级分类ID',
  `category_id_2` int(11) NOT NULL DEFAULT '0' COMMENT '二级分类ID',
  `category_id_3` int(11) NOT NULL DEFAULT '0' COMMENT '三级分类ID',
  PRIMARY KEY (`brand_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1024 COMMENT='品牌表';

-- ----------------------------
--  Table structure for `ns_goods_browse`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_browse`;
CREATE TABLE `ns_goods_browse` (
  `browse_id` int(11) NOT NULL AUTO_INCREMENT,
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '浏览时间',
  `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id',
  PRIMARY KEY (`browse_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='商品足迹表';

-- ----------------------------
--  Records of `ns_goods_browse`
-- ----------------------------
BEGIN;
INSERT INTO `ns_goods_browse` VALUES ('6', '1', '3', '1549210698', '1');
COMMIT;

-- ----------------------------
--  Table structure for `ns_goods_category`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_category`;
CREATE TABLE `ns_goods_category` (
  `category_id` int(11) NOT NULL AUTO_INCREMENT,
  `category_name` varchar(50) NOT NULL DEFAULT '',
  `short_name` varchar(50) NOT NULL DEFAULT '' COMMENT '商品分类简称 ',
  `pid` int(11) NOT NULL DEFAULT '0',
  `level` tinyint(4) NOT NULL DEFAULT '0',
  `is_visible` int(11) NOT NULL DEFAULT '1' COMMENT '是否显示  1 显示 0 不显示',
  `attr_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联商品类型ID',
  `attr_name` varchar(255) NOT NULL DEFAULT '' COMMENT '关联类型名称',
  `keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '分类关键字用于seo',
  `description` varchar(255) NOT NULL DEFAULT '' COMMENT '分类描述用于seo',
  `sort` int(11) DEFAULT NULL,
  `category_pic` varchar(255) NOT NULL DEFAULT '' COMMENT '商品分类图片',
  `pc_custom_template` varchar(255) NOT NULL DEFAULT '' COMMENT 'pc端商品分类自定义模板',
  `wap_custom_template` varchar(255) NOT NULL DEFAULT '' COMMENT 'wap端商品分类自定义模板',
  PRIMARY KEY (`category_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=244 COMMENT='商品分类表';

-- ----------------------------
--  Records of `ns_goods_category`
-- ----------------------------
BEGIN;
INSERT INTO `ns_goods_category` VALUES ('1', '测试分类', '测试', '0', '1', '1', '0', '', '', '', '0', '', '', '');
COMMIT;

-- ----------------------------
--  Table structure for `ns_goods_category_block`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_category_block`;
CREATE TABLE `ns_goods_category_block` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '实例id',
  `category_name` varchar(50) NOT NULL DEFAULT '' COMMENT '分类名称',
  `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id',
  `category_alias` varchar(50) NOT NULL DEFAULT '' COMMENT '分类别名',
  `color` varchar(255) DEFAULT '#FFFFFF' COMMENT '颜色',
  `is_show` int(11) NOT NULL DEFAULT '1' COMMENT '是否显示 1显示 0 不显示',
  `is_show_lower_category` int(11) NOT NULL DEFAULT '0' COMMENT '是否显示下级分类',
  `is_show_brand` int(11) NOT NULL DEFAULT '0' COMMENT '是否显示品牌',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `ad_picture` varchar(255) NOT NULL DEFAULT '' COMMENT '广告图  {["title":"","subtitle":"","picture":"","url":"","background":""]}',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
  `short_name` varchar(255) DEFAULT '' COMMENT '分类简称',
  `goods_sort_type` int(11) NOT NULL DEFAULT '0' COMMENT '楼层商品排序方式 0默认按时间和排序号倒叙 1按发布时间排序 2按销量排序 3按排序号排序 4按人气排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='商品分类楼层表';

-- ----------------------------
--  Records of `ns_goods_category_block`
-- ----------------------------
BEGIN;
INSERT INTO `ns_goods_category_block` VALUES ('1', '0', '测试分类', '1', '测试分类', '#FFFFFF', '1', '0', '0', '0', '', '1549117429', '1549117514', '测试分类', '0');
COMMIT;

-- ----------------------------
--  Table structure for `ns_goods_comment`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_comment`;
CREATE TABLE `ns_goods_comment` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `uid` int(11) NOT NULL COMMENT '用户id',
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `order_id` int(11) NOT NULL COMMENT '订单id',
  `create_time` int(11) DEFAULT '0' COMMENT '评论创建时间',
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '评论状态 0未评论 1已评论',
  `number` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '数量',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='商品评论送积分记录表';

-- ----------------------------
--  Table structure for `ns_goods_deleted`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_deleted`;
CREATE TABLE `ns_goods_deleted` (
  `goods_id` int(10) NOT NULL DEFAULT '0' COMMENT '商品id(SKU)',
  `goods_name` varchar(100) NOT NULL DEFAULT '' COMMENT '商品名称',
  `shop_id` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '店铺id',
  `category_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品分类id',
  `category_id_1` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '一级分类id',
  `category_id_2` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '二级分类id',
  `category_id_3` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '三级分类id',
  `brand_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '品牌id',
  `group_id_array` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺分类id 首尾用,隔开',
  `promotion_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '促销类型 0无促销，1团购，2限时折扣',
  `promote_id` int(11) NOT NULL DEFAULT '0' COMMENT '促销活动ID',
  `goods_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '实物或虚拟商品标志 1实物商品 0 虚拟商品 2 F码商品',
  `market_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '市场价',
  `price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '商品原价格',
  `promotion_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品促销价格',
  `cost_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '成本价',
  `point_exchange_type` tinyint(3) NOT NULL DEFAULT '0' COMMENT '积分兑换类型 0 非积分兑换 1 只能积分兑换 ',
  `point_exchange` int(11) NOT NULL DEFAULT '0' COMMENT '积分兑换',
  `give_point` int(11) NOT NULL DEFAULT '0' COMMENT '购买商品赠送积分',
  `is_member_discount` int(1) NOT NULL DEFAULT '0' COMMENT '参与会员折扣',
  `shipping_fee` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '运费 0为免运费',
  `shipping_fee_id` int(11) NOT NULL DEFAULT '0' COMMENT '售卖区域id 物流模板id  ns_order_shipping_fee 表id',
  `stock` int(10) NOT NULL DEFAULT '0' COMMENT '商品库存',
  `max_buy` int(11) NOT NULL DEFAULT '0' COMMENT '限购 0 不限购',
  `clicks` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品点击数量',
  `min_stock_alarm` int(11) NOT NULL DEFAULT '0' COMMENT '库存预警值',
  `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销售数量',
  `collects` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '收藏数量',
  `star` tinyint(3) unsigned NOT NULL DEFAULT '5' COMMENT '好评星级',
  `evaluates` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '评价数',
  `shares` int(11) NOT NULL DEFAULT '0' COMMENT '分享数',
  `province_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '一级地区id',
  `city_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '二级地区id',
  `picture` int(11) NOT NULL DEFAULT '0' COMMENT '商品主图',
  `keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '商品关键词',
  `introduction` varchar(255) NOT NULL DEFAULT '' COMMENT '商品简介，促销语',
  `description` text NOT NULL COMMENT '商品详情',
  `QRcode` varchar(255) NOT NULL DEFAULT '' COMMENT '商品二维码',
  `code` varchar(50) NOT NULL DEFAULT '' COMMENT '商家编号',
  `is_stock_visible` int(1) NOT NULL DEFAULT '0' COMMENT '页面不显示库存',
  `is_hot` int(1) NOT NULL DEFAULT '0' COMMENT '是否热销商品',
  `is_recommend` int(1) NOT NULL DEFAULT '0' COMMENT '是否推荐',
  `is_new` int(1) NOT NULL DEFAULT '0' COMMENT '是否新品',
  `is_pre_sale` int(1) NOT NULL DEFAULT '0' COMMENT '是否预售',
  `is_bill` int(1) NOT NULL DEFAULT '0' COMMENT '是否开具增值税发票 1是，0否',
  `state` tinyint(3) NOT NULL DEFAULT '1' COMMENT '商品状态 0下架，1正常，10违规（禁售）',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `img_id_array` varchar(1000) DEFAULT NULL COMMENT '商品图片序列',
  `sku_img_array` varchar(1000) DEFAULT NULL COMMENT '商品sku应用图片列表  属性,属性值，图片ID',
  `match_point` float(10,2) DEFAULT NULL COMMENT '实物与描述相符（根据评价计算）',
  `match_ratio` float(10,2) DEFAULT NULL COMMENT '实物与描述相符（根据评价计算）百分比',
  `real_sales` int(10) NOT NULL DEFAULT '0' COMMENT '实际销量',
  `goods_attribute_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品类型',
  `goods_spec_format` text NOT NULL COMMENT '商品规格',
  `goods_weight` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '商品重量',
  `goods_volume` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '商品体积',
  `shipping_fee_type` int(11) NOT NULL DEFAULT '1' COMMENT '计价方式1.重量2.体积3.计件',
  `extend_category_id` varchar(255) DEFAULT NULL,
  `extend_category_id_1` varchar(255) DEFAULT NULL,
  `extend_category_id_2` varchar(255) DEFAULT NULL,
  `extend_category_id_3` varchar(255) DEFAULT NULL,
  `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供货商id',
  `sale_date` int(11) DEFAULT '0' COMMENT '上下架时间',
  `create_time` int(11) DEFAULT '0' COMMENT '商品添加时间',
  `update_time` int(11) DEFAULT '0' COMMENT '商品编辑时间',
  `min_buy` int(11) NOT NULL DEFAULT '0' COMMENT '最少买几件',
  `virtual_goods_type_id` int(11) DEFAULT '0' COMMENT '虚拟商品类型id',
  `production_date` int(11) NOT NULL DEFAULT '0' COMMENT '生产日期',
  `shelf_life` varchar(50) NOT NULL DEFAULT '' COMMENT '保质期',
  `goods_video_address` varchar(455) NOT NULL DEFAULT '' COMMENT '商品视频地址，不为空时前台显示视频',
  `pc_custom_template` varchar(255) NOT NULL DEFAULT '' COMMENT 'pc端商品自定义模板',
  `wap_custom_template` varchar(255) NOT NULL DEFAULT '' COMMENT 'wap端商品自定义模板',
  `max_use_point` int(11) NOT NULL DEFAULT '0' COMMENT '积分抵现最大可用积分数 0为不可使用',
  `is_open_presell` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否支持预售',
  `presell_time` int(11) NOT NULL DEFAULT '0' COMMENT '预售发货时间',
  `presell_day` int(11) NOT NULL DEFAULT '0' COMMENT '预售发货天数',
  `presell_delivery_type` int(11) NOT NULL DEFAULT '1' COMMENT '预售发货方式1. 按照预售发货时间 2.按照预售发货天数',
  `presell_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '预售金额',
  `goods_unit` varchar(20) NOT NULL DEFAULT '件' COMMENT '商品单位'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='商品回收站表';

-- ----------------------------
--  Table structure for `ns_goods_evaluate`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_evaluate`;
CREATE TABLE `ns_goods_evaluate` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评价ID',
  `order_id` int(11) NOT NULL COMMENT '订单ID',
  `order_no` bigint(20) unsigned NOT NULL COMMENT '订单编号',
  `order_goods_id` int(11) NOT NULL COMMENT '订单项ID',
  `goods_id` int(11) NOT NULL COMMENT '商品ID',
  `goods_name` varchar(100) NOT NULL COMMENT '商品名称',
  `goods_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品价格',
  `goods_image` varchar(255) NOT NULL DEFAULT '' COMMENT '商品图片',
  `shop_id` int(11) NOT NULL COMMENT '店铺ID',
  `shop_name` varchar(100) NOT NULL COMMENT '店铺名称',
  `content` varchar(255) NOT NULL DEFAULT '' COMMENT '评价内容',
  `image` varchar(1000) NOT NULL DEFAULT '' COMMENT '评价图片',
  `explain_first` varchar(255) NOT NULL DEFAULT '' COMMENT '解释内容',
  `member_name` varchar(100) NOT NULL DEFAULT '' COMMENT '评价人名称',
  `uid` int(11) NOT NULL COMMENT '评价人编号',
  `is_anonymous` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0表示不是 1表示是匿名评价',
  `scores` tinyint(1) NOT NULL COMMENT '1-5分',
  `again_content` varchar(255) NOT NULL DEFAULT '' COMMENT '追加评价内容',
  `again_image` varchar(1000) NOT NULL DEFAULT '' COMMENT '追评评价图片',
  `again_explain` varchar(255) NOT NULL DEFAULT '' COMMENT '追加解释内容',
  `explain_type` int(11) DEFAULT '0' COMMENT '1好评2中评3差评',
  `is_show` int(1) DEFAULT '1' COMMENT '1显示 0隐藏',
  `addtime` int(11) DEFAULT '0' COMMENT '评价时间',
  `again_addtime` int(11) DEFAULT '0' COMMENT '追加评价时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1489 COMMENT='商品评价表';

-- ----------------------------
--  Table structure for `ns_goods_group`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_group`;
CREATE TABLE `ns_goods_group` (
  `group_id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL,
  `group_name` varchar(50) NOT NULL DEFAULT '' COMMENT '分类名称',
  `pid` int(11) NOT NULL DEFAULT '0' COMMENT '上级id 最多2级',
  `level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '级别',
  `is_visible` int(1) NOT NULL DEFAULT '1' COMMENT '是否可视',
  `group_pic` varchar(100) NOT NULL DEFAULT '' COMMENT '图片',
  `sort` int(11) DEFAULT NULL,
  `group_dec` varchar(500) NOT NULL DEFAULT '' COMMENT '标签描述',
  PRIMARY KEY (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=160 COMMENT='商品本店分类';

-- ----------------------------
--  Table structure for `ns_goods_ladder_preferential`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_ladder_preferential`;
CREATE TABLE `ns_goods_ladder_preferential` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `goods_id` int(11) NOT NULL COMMENT '商品关联id',
  `quantity` int(11) NOT NULL COMMENT '数量',
  `price` decimal(10,2) NOT NULL COMMENT '优惠价格',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品阶梯优惠';

-- ----------------------------
--  Table structure for `ns_goods_sku`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_sku`;
CREATE TABLE `ns_goods_sku` (
  `sku_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '表序号',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品编号',
  `sku_name` varchar(500) NOT NULL DEFAULT '' COMMENT 'SKU名称',
  `attr_value_items` varchar(255) NOT NULL DEFAULT '' COMMENT '属性和属性值 id串 attribute + attribute value 表ID分号分隔',
  `attr_value_items_format` varchar(500) NOT NULL DEFAULT '' COMMENT '属性和属性值id串组合json格式',
  `market_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '市场价',
  `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '价格',
  `promote_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '促销价格',
  `cost_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '成本价',
  `stock` int(11) NOT NULL DEFAULT '0' COMMENT '库存',
  `picture` int(11) NOT NULL DEFAULT '0' COMMENT '如果是第一个sku编码, 可以加图片',
  `code` varchar(255) NOT NULL DEFAULT '' COMMENT '商家编码',
  `QRcode` varchar(255) NOT NULL DEFAULT '' COMMENT '商品二维码',
  `create_date` int(11) DEFAULT '0' COMMENT '创建时间',
  `update_date` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`sku_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=481 COMMENT='商品skui规格价格库存信息表';

-- ----------------------------
--  Records of `ns_goods_sku`
-- ----------------------------
BEGIN;
INSERT INTO `ns_goods_sku` VALUES ('3', '1', '', '', '', '0.00', '10.00', '10.00', '0.00', '1000', '0', '', '', '0', '1549198915');
COMMIT;

-- ----------------------------
--  Table structure for `ns_goods_sku_deleted`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_sku_deleted`;
CREATE TABLE `ns_goods_sku_deleted` (
  `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT '表序号',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品编号',
  `sku_name` varchar(500) NOT NULL DEFAULT '' COMMENT 'SKU名称',
  `attr_value_items` varchar(255) NOT NULL DEFAULT '' COMMENT '属性和属性值 id串 attribute + attribute value 表ID分号分隔',
  `attr_value_items_format` varchar(500) NOT NULL DEFAULT '' COMMENT '属性和属性值id串组合json格式',
  `market_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '市场价',
  `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '价格',
  `promote_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '促销价格',
  `cost_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '成本价',
  `stock` int(11) NOT NULL DEFAULT '0' COMMENT '库存',
  `picture` int(11) NOT NULL DEFAULT '0' COMMENT '如果是第一个sku编码, 可以加图片',
  `code` varchar(255) NOT NULL DEFAULT '' COMMENT '商家编码',
  `QRcode` varchar(255) NOT NULL DEFAULT '' COMMENT '商品二维码',
  `create_date` int(11) DEFAULT '0' COMMENT '创建时间',
  `update_date` int(11) DEFAULT '0' COMMENT '修改时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1638 COMMENT='商品skui规格价格库存信息回收站表';

-- ----------------------------
--  Table structure for `ns_goods_sku_picture`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_sku_picture`;
CREATE TABLE `ns_goods_sku_picture` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `spec_id` int(11) NOT NULL DEFAULT '0' COMMENT '主规格id',
  `spec_value_id` int(11) NOT NULL DEFAULT '0' COMMENT '规格值id',
  `sku_img_array` varchar(1000) NOT NULL DEFAULT '' COMMENT '图片id 多个用逗号隔开',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品sku多图';

-- ----------------------------
--  Table structure for `ns_goods_sku_picture_delete`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_sku_picture_delete`;
CREATE TABLE `ns_goods_sku_picture_delete` (
  `id` int(11) NOT NULL,
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `spec_id` int(11) NOT NULL DEFAULT '0' COMMENT '主规格id',
  `spec_value_id` int(11) NOT NULL DEFAULT '0' COMMENT '规格值id',
  `sku_img_array` varchar(1000) NOT NULL DEFAULT '' COMMENT '图片id 多个用逗号隔开',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='商品sku多图';

-- ----------------------------
--  Table structure for `ns_goods_spec`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_spec`;
CREATE TABLE `ns_goods_spec` (
  `spec_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '属性ID',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `spec_name` varchar(255) NOT NULL DEFAULT '' COMMENT '属性名称',
  `is_visible` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可视',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `show_type` int(11) NOT NULL DEFAULT '1' COMMENT '展示方式 1 文字 2 颜色 3 图片',
  `create_time` int(11) DEFAULT '0' COMMENT '创建日期',
  `is_screen` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否参与筛选 0 不参与 1 参与',
  `spec_des` varchar(255) NOT NULL DEFAULT '' COMMENT '属性说明',
  `goods_id` int(11) DEFAULT '0' COMMENT '商品关联id',
  PRIMARY KEY (`spec_id`),
  KEY `IDX_category_props_categoryId` (`shop_id`),
  KEY `IDX_category_props_orders` (`sort`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=3276 COMMENT='商品属性（规格）表';

-- ----------------------------
--  Table structure for `ns_goods_spec_value`
-- ----------------------------
DROP TABLE IF EXISTS `ns_goods_spec_value`;
CREATE TABLE `ns_goods_spec_value` (
  `spec_value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '商品属性值ID',
  `spec_id` int(11) NOT NULL COMMENT '商品属性ID',
  `spec_value_name` varchar(255) NOT NULL DEFAULT '' COMMENT '商品属性值名称',
  `spec_value_data` varchar(255) NOT NULL DEFAULT '' COMMENT '商品属性值数据',
  `is_visible` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否可视',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `create_time` int(11) DEFAULT '0',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  PRIMARY KEY (`spec_value_id`),
  KEY `IDX_category_propvalues_c_pId` (`spec_id`),
  KEY `IDX_category_propvalues_orders` (`sort`),
  KEY `IDX_category_propvalues_value` (`spec_value_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1092 COMMENT='商品规格值模版表';

-- ----------------------------
--  Table structure for `ns_member`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member`;
CREATE TABLE `ns_member` (
  `uid` int(11) NOT NULL COMMENT '用户ID',
  `member_name` varchar(50) NOT NULL DEFAULT '' COMMENT '前台用户名',
  `member_level` int(11) NOT NULL DEFAULT '0' COMMENT '会员等级',
  `memo` varchar(1000) DEFAULT NULL COMMENT '备注',
  `reg_time` int(11) DEFAULT '0' COMMENT '注册时间',
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=147 COMMENT='前台用户表';

-- ----------------------------
--  Records of `ns_member`
-- ----------------------------
BEGIN;
INSERT INTO `ns_member` VALUES ('1', 'admin', '47', '', '2018'), ('2', 'admin', '47', '', '2019'), ('3', 'lvdoubaobao', '47', null, '1549199817'), ('4', 'hahah', '47', null, '1550568628');
COMMIT;

-- ----------------------------
--  Table structure for `ns_member_account`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_account`;
CREATE TABLE `ns_member_account` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL COMMENT '会员uid',
  `shop_id` int(11) NOT NULL COMMENT '店铺ID',
  `point` int(11) NOT NULL DEFAULT '0' COMMENT '会员积分',
  `balance` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '余额',
  `coin` int(11) NOT NULL DEFAULT '0' COMMENT '购物币',
  `member_cunsum` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '会员消费',
  `member_sum_point` int(11) NOT NULL DEFAULT '0' COMMENT '会员累计积分',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=3276 COMMENT='会员账户统计表';

-- ----------------------------
--  Records of `ns_member_account`
-- ----------------------------
BEGIN;
INSERT INTO `ns_member_account` VALUES ('1', '3', '0', '0', '4.00', '0', '0.00', '0'), ('2', '4', '0', '0', '0.00', '0', '0.00', '0');
COMMIT;

-- ----------------------------
--  Table structure for `ns_member_account_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_account_records`;
CREATE TABLE `ns_member_account_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `account_type` int(11) NOT NULL DEFAULT '1' COMMENT '账户类型1.积分2.余额3.购物币',
  `sign` smallint(6) NOT NULL DEFAULT '1' COMMENT '正负号',
  `number` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '数量',
  `from_type` smallint(6) NOT NULL DEFAULT '0' COMMENT '产生方式1.商城订单2.订单退还3.兑换4.充值5.签到6.分享7.注册8.提现9提现退还',
  `data_id` int(11) NOT NULL DEFAULT '0' COMMENT '相关表的数据ID',
  `text` varchar(255) NOT NULL DEFAULT '' COMMENT '数据相关内容描述文本',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=108 COMMENT='会员流水账表';

-- ----------------------------
--  Records of `ns_member_account_records`
-- ----------------------------
BEGIN;
INSERT INTO `ns_member_account_records` VALUES ('1', '3', '0', '2', '1', '4.00', '10', '0', '', '1550477305'), ('2', '4', '0', '1', '1', '0.00', '7', '0', '注册会员赠送积分', '1550568628');
COMMIT;

-- ----------------------------
--  Table structure for `ns_member_balance_withdraw`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_balance_withdraw`;
CREATE TABLE `ns_member_balance_withdraw` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL COMMENT '店铺编号',
  `withdraw_no` varchar(255) NOT NULL DEFAULT '' COMMENT '提现流水号',
  `uid` int(11) NOT NULL COMMENT '会员id',
  `bank_name` varchar(50) NOT NULL COMMENT '提现银行名称',
  `account_number` varchar(50) NOT NULL COMMENT '提现银行账号',
  `realname` varchar(10) NOT NULL COMMENT '提现账户姓名',
  `mobile` varchar(20) NOT NULL COMMENT '手机',
  `cash` decimal(10,2) NOT NULL COMMENT '提现金额',
  `status` smallint(6) NOT NULL DEFAULT '0' COMMENT '当前状态 0已申请(等待处理) 1已同意 -1 已拒绝',
  `memo` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  `ask_for_date` int(11) DEFAULT '0' COMMENT '提现日期',
  `payment_date` int(11) DEFAULT '0' COMMENT '到账日期',
  `modify_date` int(11) DEFAULT '0' COMMENT '修改日期',
  `transfer_type` int(11) NOT NULL DEFAULT '1' COMMENT '转账方式   1 线下转账  2线上转账',
  `transfer_name` varchar(50) NOT NULL DEFAULT '' COMMENT '转账银行名称',
  `transfer_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '转账金额',
  `transfer_status` int(11) DEFAULT '0' COMMENT '转账状态 0未转账 1已转账 -1转账失败',
  `transfer_remark` varchar(255) DEFAULT '' COMMENT '转账备注',
  `transfer_result` varchar(255) DEFAULT '' COMMENT '转账结果',
  `transfer_no` varchar(255) DEFAULT '' COMMENT '转账流水号',
  `transfer_account_no` varchar(255) DEFAULT '' COMMENT '转账银行账号',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='会员余额提现记录表';

-- ----------------------------
--  Table structure for `ns_member_bank_account`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_bank_account`;
CREATE TABLE `ns_member_bank_account` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL COMMENT '会员id',
  `branch_bank_name` varchar(50) DEFAULT NULL COMMENT '支行信息',
  `realname` varchar(50) NOT NULL DEFAULT '' COMMENT '真实姓名',
  `account_number` varchar(50) NOT NULL DEFAULT '' COMMENT '银行账号',
  `mobile` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
  `is_default` int(11) NOT NULL DEFAULT '0' COMMENT '是否默认账号',
  `create_date` int(11) DEFAULT '0' COMMENT '创建日期',
  `modify_date` int(11) DEFAULT '0' COMMENT '修改日期',
  `account_type` int(11) DEFAULT '1' COMMENT '账户类型，1：银行卡，2：微信，3：支付宝',
  `account_type_name` varchar(30) DEFAULT '银行卡' COMMENT '账户类型名称：银行卡，微信，支付宝',
  PRIMARY KEY (`id`),
  KEY `IDX_member_bank_account_uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='会员提现账号';

-- ----------------------------
--  Table structure for `ns_member_express_address`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_express_address`;
CREATE TABLE `ns_member_express_address` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL COMMENT '会员基本资料表ID',
  `consigner` varchar(255) NOT NULL DEFAULT '' COMMENT '收件人',
  `mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '手机',
  `phone` varchar(20) NOT NULL DEFAULT '' COMMENT '固定电话',
  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省',
  `city` int(11) NOT NULL DEFAULT '0' COMMENT '市',
  `district` int(11) NOT NULL DEFAULT '0' COMMENT '区县',
  `address` varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址',
  `zip_code` varchar(6) NOT NULL DEFAULT '' COMMENT '邮编',
  `alias` varchar(50) NOT NULL DEFAULT '' COMMENT '地址别名',
  `is_default` int(11) NOT NULL DEFAULT '0' COMMENT '默认收货地址',
  PRIMARY KEY (`id`),
  KEY `IDX_member_express_address_uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2340 COMMENT='会员收货地址管理';

-- ----------------------------
--  Table structure for `ns_member_favorites`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_favorites`;
CREATE TABLE `ns_member_favorites` (
  `log_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '记录ID',
  `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '会员ID',
  `fav_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品或店铺ID',
  `fav_type` varchar(20) NOT NULL DEFAULT 'goods' COMMENT '类型:goods为商品,shop为店铺,默认为商品',
  `shop_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `shop_name` varchar(20) NOT NULL DEFAULT '' COMMENT '店铺名称',
  `shop_logo` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺logo',
  `goods_name` varchar(50) NOT NULL DEFAULT '' COMMENT '商品名称',
  `goods_image` varchar(300) DEFAULT NULL,
  `log_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品收藏时价格',
  `log_msg` varchar(1000) NOT NULL DEFAULT '' COMMENT '收藏备注',
  `fav_time` int(11) DEFAULT '0' COMMENT '收藏时间',
  PRIMARY KEY (`log_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='收藏表';

-- ----------------------------
--  Records of `ns_member_favorites`
-- ----------------------------
BEGIN;
INSERT INTO `ns_member_favorites` VALUES ('1', '3', '1', 'goods', '0', '顺慈商城', 'public/static/images/default_img_url/logo.png', '测试商品', 'upload/goods/20190202/9cf4b339fd76241ec7b134a21989513c3.png', '10.00', '测试商品', '1549204350');
COMMIT;

-- ----------------------------
--  Table structure for `ns_member_gift`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_gift`;
CREATE TABLE `ns_member_gift` (
  `gift_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `uid` int(11) NOT NULL COMMENT '会员ID',
  `promotion_gift_id` int(11) NOT NULL COMMENT '赠品活动ID',
  `goods_id` int(11) NOT NULL COMMENT '赠品ID',
  `goods_name` varchar(255) NOT NULL DEFAULT '' COMMENT '赠品名称',
  `goods_picture` int(11) NOT NULL DEFAULT '0' COMMENT '赠品图片',
  `num` int(11) NOT NULL DEFAULT '1' COMMENT '赠品数量',
  `get_type` int(11) NOT NULL DEFAULT '1' COMMENT '获取方式',
  `get_type_id` int(11) NOT NULL COMMENT '获取方式对应ID',
  `desc` text NOT NULL COMMENT '说明',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`gift_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='会员赠品表';

-- ----------------------------
--  Table structure for `ns_member_level`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_level`;
CREATE TABLE `ns_member_level` (
  `level_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '等级ID',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `level_name` varchar(50) NOT NULL DEFAULT '' COMMENT '等级名称',
  `min_integral` int(11) NOT NULL DEFAULT '0' COMMENT '累计积分',
  `goods_discount` decimal(3,2) NOT NULL DEFAULT '1.00' COMMENT '折扣率',
  `desc` varchar(1000) NOT NULL DEFAULT '' COMMENT '等级描述',
  `is_default` int(11) NOT NULL DEFAULT '0' COMMENT '是否是默认',
  `quota` int(11) NOT NULL DEFAULT '0' COMMENT '消费额度',
  `upgrade` int(11) NOT NULL COMMENT '升级条件  1.累计积分 2.消费额度 3.同时满足',
  `relation` int(11) NOT NULL DEFAULT '1' COMMENT '1.或 2. 且',
  PRIMARY KEY (`level_id`)
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='会员等级';

-- ----------------------------
--  Records of `ns_member_level`
-- ----------------------------
BEGIN;
INSERT INTO `ns_member_level` VALUES ('47', '0', '普通会员', '0', '1.00', '', '1', '0', '0', '2');
COMMIT;

-- ----------------------------
--  Table structure for `ns_member_recharge`
-- ----------------------------
DROP TABLE IF EXISTS `ns_member_recharge`;
CREATE TABLE `ns_member_recharge` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `recharge_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '支付金额',
  `uid` varchar(255) NOT NULL COMMENT '用户uid',
  `out_trade_no` varchar(255) NOT NULL DEFAULT '' COMMENT '支付流水号',
  `create_time` varchar(255) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `is_pay` varchar(255) NOT NULL DEFAULT '0' COMMENT '是否支付',
  `status` varchar(255) NOT NULL DEFAULT '0' COMMENT '状态',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='会员充值余额记录';

-- ----------------------------
--  Table structure for `ns_notice`
-- ----------------------------
DROP TABLE IF EXISTS `ns_notice`;
CREATE TABLE `ns_notice` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '公告id',
  `notice_title` varchar(255) NOT NULL DEFAULT '' COMMENT '标题',
  `notice_content` text NOT NULL COMMENT '公告内容',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='店铺公告表';

-- ----------------------------
--  Table structure for `ns_o2o_distribution_area`
-- ----------------------------
DROP TABLE IF EXISTS `ns_o2o_distribution_area`;
CREATE TABLE `ns_o2o_distribution_area` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店或者店铺id',
  `province_id` text COMMENT '省id',
  `city_id` text COMMENT '市id',
  `district_id` text COMMENT '区县id',
  `community_id` text COMMENT '社区乡镇id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配送区域管理';

-- ----------------------------
--  Table structure for `ns_o2o_distribution_config`
-- ----------------------------
DROP TABLE IF EXISTS `ns_o2o_distribution_config`;
CREATE TABLE `ns_o2o_distribution_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店或者店铺id',
  `order_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单金额',
  `freight` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '运费',
  `is_start` int(11) NOT NULL DEFAULT '0' COMMENT '是否是起步价',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配送费用设置';

-- ----------------------------
--  Table structure for `ns_o2o_distribution_user`
-- ----------------------------
DROP TABLE IF EXISTS `ns_o2o_distribution_user`;
CREATE TABLE `ns_o2o_distribution_user` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL DEFAULT '' COMMENT '配送人员姓名',
  `mobile` varchar(255) NOT NULL DEFAULT '' COMMENT '配送人员电话',
  `remark` text COMMENT '配送人员备注',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配送人员管理';

-- ----------------------------
--  Table structure for `ns_o2o_order_delivery`
-- ----------------------------
DROP TABLE IF EXISTS `ns_o2o_order_delivery`;
CREATE TABLE `ns_o2o_order_delivery` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `express_no` varchar(255) NOT NULL DEFAULT '' COMMENT '订单编号',
  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单id',
  `order_delivery_user_id` int(11) NOT NULL DEFAULT '0' COMMENT '配送人员id',
  `order_delivery_user_name` varchar(255) NOT NULL DEFAULT '' COMMENT '配送人员姓名',
  `order_delivery_user_mobile` varchar(255) NOT NULL DEFAULT '' COMMENT '配送人员电话',
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '状态',
  `remark` text NOT NULL COMMENT '备注',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='o2o订单配送';

-- ----------------------------
--  Table structure for `ns_offpay_area`
-- ----------------------------
DROP TABLE IF EXISTS `ns_offpay_area`;
CREATE TABLE `ns_offpay_area` (
  `shop_id` int(11) DEFAULT NULL COMMENT '店铺Id',
  `province_id` text COMMENT '省Id组合',
  `city_id` text COMMENT '市Id组合',
  `district_id` text COMMENT '县Id组合'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='货到付款支持地区表';

-- ----------------------------
--  Table structure for `ns_order`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order`;
CREATE TABLE `ns_order` (
  `order_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单id',
  `order_no` varchar(255) DEFAULT '' COMMENT '订单编号',
  `out_trade_no` varchar(100) NOT NULL DEFAULT '0' COMMENT '外部交易号',
  `order_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '订单类型',
  `payment_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '支付类型。取值范围：\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nWEIXIN (微信自有支付)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nWEIXIN_DAIXIAO (微信代销支付)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nALIPAY (支付宝支付)',
  `shipping_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '订单配送方式',
  `order_from` varchar(255) NOT NULL DEFAULT '' COMMENT '订单来源',
  `buyer_id` int(11) NOT NULL COMMENT '买家id',
  `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '买家会员名称',
  `buyer_ip` varchar(20) NOT NULL DEFAULT '' COMMENT '买家ip',
  `buyer_message` varchar(255) NOT NULL DEFAULT '' COMMENT '买家附言',
  `buyer_invoice` varchar(255) NOT NULL DEFAULT '' COMMENT '买家发票信息',
  `receiver_mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '收货人的手机号码',
  `receiver_province` int(11) NOT NULL COMMENT '收货人所在省',
  `receiver_city` int(11) NOT NULL COMMENT '收货人所在城市',
  `receiver_district` int(11) NOT NULL COMMENT '收货人所在街道',
  `receiver_address` varchar(255) NOT NULL DEFAULT '' COMMENT '收货人详细地址',
  `receiver_zip` varchar(6) NOT NULL DEFAULT '' COMMENT '收货人邮编',
  `receiver_name` varchar(50) NOT NULL DEFAULT '' COMMENT '收货人姓名',
  `shop_id` int(11) NOT NULL COMMENT '卖家店铺id',
  `shop_name` varchar(100) NOT NULL DEFAULT '' COMMENT '卖家店铺名称',
  `seller_star` tinyint(4) NOT NULL DEFAULT '0' COMMENT '卖家对订单的标注星标',
  `seller_memo` varchar(255) NOT NULL DEFAULT '' COMMENT '卖家对订单的备注',
  `consign_time_adjust` int(11) NOT NULL DEFAULT '0' COMMENT '卖家延迟发货时间',
  `goods_money` decimal(19,2) NOT NULL COMMENT '商品总价',
  `order_money` decimal(10,2) NOT NULL COMMENT '订单总价',
  `point` int(11) NOT NULL COMMENT '订单消耗积分',
  `point_money` decimal(10,2) NOT NULL COMMENT '订单消耗积分抵多少钱',
  `coupon_money` decimal(10,2) NOT NULL COMMENT '订单代金券支付金额',
  `coupon_id` int(11) NOT NULL COMMENT '订单代金券id',
  `user_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单余额支付金额',
  `user_platform_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '用户平台余额支付',
  `promotion_money` decimal(10,2) NOT NULL COMMENT '订单优惠活动金额',
  `shipping_money` decimal(10,2) NOT NULL COMMENT '订单运费',
  `pay_money` decimal(10,2) NOT NULL COMMENT '订单实付金额',
  `refund_money` decimal(10,2) NOT NULL COMMENT '订单退款金额',
  `coin_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '购物币金额',
  `give_point` int(11) NOT NULL COMMENT '订单赠送积分',
  `give_coin` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单成功之后返购物币',
  `order_status` tinyint(4) NOT NULL COMMENT '订单状态',
  `pay_status` tinyint(4) NOT NULL COMMENT '订单付款状态',
  `shipping_status` tinyint(4) NOT NULL COMMENT '订单配送状态',
  `review_status` tinyint(4) NOT NULL COMMENT '订单评价状态',
  `feedback_status` tinyint(4) NOT NULL COMMENT '订单维权状态',
  `is_evaluate` smallint(6) NOT NULL DEFAULT '0' COMMENT '是否评价 0为未评价 1为已评价 2为已追评',
  `tax_money` decimal(10,2) NOT NULL DEFAULT '0.00',
  `shipping_company_id` int(11) NOT NULL DEFAULT '0' COMMENT '配送物流公司ID',
  `give_point_type` int(11) NOT NULL DEFAULT '1' COMMENT '积分返还类型 1 订单完成  2 订单收货 3  支付订单',
  `pay_time` int(11) DEFAULT '0' COMMENT '订单付款时间',
  `shipping_time` int(11) DEFAULT '0' COMMENT '买家要求配送时间',
  `sign_time` int(11) DEFAULT '0' COMMENT '买家签收时间',
  `consign_time` int(11) DEFAULT '0' COMMENT '卖家发货时间',
  `create_time` int(11) DEFAULT '0' COMMENT '订单创建时间',
  `finish_time` int(11) DEFAULT '0' COMMENT '订单完成时间',
  `is_deleted` int(1) NOT NULL DEFAULT '0' COMMENT '订单是否已删除',
  `operator_type` int(1) NOT NULL DEFAULT '0' COMMENT '操作人类型  1店铺  2用户',
  `operator_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人id',
  `refund_balance_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单退款余额',
  `fixed_telephone` varchar(50) NOT NULL DEFAULT '' COMMENT '固定电话',
  `distribution_time_out` varchar(50) NOT NULL DEFAULT '' COMMENT '配送时间段',
  PRIMARY KEY (`order_id`),
  KEY `UK_ns_order_buyer_id` (`buyer_id`),
  KEY `UK_ns_order_order_no` (`order_no`),
  KEY `UK_ns_order_pay_status` (`pay_status`),
  KEY `UK_ns_order_status` (`order_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=440 COMMENT='订单表';

-- ----------------------------
--  Table structure for `ns_order_action`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_action`;
CREATE TABLE `ns_order_action` (
  `action_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '动作id',
  `order_id` int(11) NOT NULL COMMENT '订单id',
  `action` varchar(255) NOT NULL DEFAULT '' COMMENT '动作内容',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '操作人id',
  `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '操作人',
  `order_status` int(11) NOT NULL COMMENT '订单大状态',
  `order_status_text` varchar(255) NOT NULL DEFAULT '' COMMENT '订单状态名称',
  `action_time` int(11) DEFAULT '0' COMMENT '操作时间',
  PRIMARY KEY (`action_id`)
) ENGINE=MEMORY DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1706 COMMENT='订单操作表';

-- ----------------------------
--  Table structure for `ns_order_customer_account_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_customer_account_records`;
CREATE TABLE `ns_order_customer_account_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `order_goods_id` int(11) NOT NULL COMMENT '订单项id',
  `refund_trade_no` varchar(55) NOT NULL COMMENT '退款交易号',
  `refund_money` decimal(10,2) NOT NULL COMMENT '退款金额',
  `refund_way` int(11) NOT NULL COMMENT '退款方式（1：微信，2：支付宝，10：线下）',
  `buyer_id` int(11) NOT NULL COMMENT '买家id',
  `refund_time` int(11) NOT NULL COMMENT '退款时间',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单售后账户记录';

-- ----------------------------
--  Table structure for `ns_order_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_goods`;
CREATE TABLE `ns_order_goods` (
  `order_goods_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单项ID',
  `order_id` int(11) NOT NULL COMMENT '订单ID',
  `goods_id` int(11) NOT NULL COMMENT '商品ID',
  `goods_name` varchar(100) NOT NULL COMMENT '商品名称',
  `sku_id` int(11) NOT NULL COMMENT 'skuID',
  `sku_name` varchar(50) NOT NULL COMMENT 'sku名称',
  `price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '商品价格',
  `cost_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '商品成本价',
  `num` varchar(255) NOT NULL DEFAULT '0' COMMENT '购买数量',
  `adjust_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '调整金额',
  `goods_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品总价',
  `goods_picture` int(11) NOT NULL DEFAULT '0' COMMENT '商品图片',
  `shop_id` int(11) NOT NULL DEFAULT '1' COMMENT '店铺ID',
  `buyer_id` int(11) NOT NULL DEFAULT '0' COMMENT '购买人ID',
  `point_exchange_type` int(11) NOT NULL DEFAULT '0' COMMENT '积分兑换类型0.非积分兑换1.积分兑换',
  `goods_type` varchar(255) NOT NULL DEFAULT '1' COMMENT '商品类型',
  `promotion_id` int(11) NOT NULL DEFAULT '0' COMMENT '促销ID',
  `promotion_type_id` int(11) NOT NULL DEFAULT '0' COMMENT '促销类型',
  `order_type` int(11) NOT NULL DEFAULT '1' COMMENT '订单类型',
  `order_status` int(11) NOT NULL DEFAULT '0' COMMENT '订单状态',
  `give_point` int(11) NOT NULL DEFAULT '0' COMMENT '积分数量',
  `shipping_status` int(11) NOT NULL DEFAULT '0' COMMENT '物流状态',
  `refund_type` int(11) NOT NULL DEFAULT '1' COMMENT '退款方式',
  `refund_require_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '退款金额',
  `refund_reason` varchar(255) NOT NULL DEFAULT '' COMMENT '退款原因',
  `refund_shipping_code` varchar(255) NOT NULL DEFAULT '' COMMENT '退款物流单号',
  `refund_shipping_company` varchar(255) NOT NULL DEFAULT '0' COMMENT '退款物流公司名称',
  `refund_real_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '实际退款金额',
  `refund_status` int(1) NOT NULL DEFAULT '0' COMMENT '退款状态',
  `memo` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  `is_evaluate` smallint(6) NOT NULL DEFAULT '0' COMMENT '是否评价 0为未评价 1为已评价 2为已追评',
  `refund_time` int(11) DEFAULT '0' COMMENT '退款时间',
  `refund_balance_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单退款余额',
  `tmp_express_company` varchar(255) NOT NULL DEFAULT '' COMMENT '批量打印时添加的临时物流公司',
  `tmp_express_company_id` int(11) NOT NULL DEFAULT '0' COMMENT '批量打印时添加的临时物流公司id',
  `tmp_express_no` varchar(50) NOT NULL DEFAULT '' COMMENT '批量打印时添加的临时订单编号',
  `gift_flag` int(11) DEFAULT '0' COMMENT '赠品标识，0:不是赠品，大于0：赠品id',
  PRIMARY KEY (`order_goods_id`),
  KEY `UK_ns_order_goods_buyer_id` (`buyer_id`),
  KEY `UK_ns_order_goods_goods_id` (`goods_id`),
  KEY `UK_ns_order_goods_order_id` (`order_id`),
  KEY `UK_ns_order_goods_promotion_id` (`promotion_id`),
  KEY `UK_ns_order_goods_sku_id` (`sku_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=289 COMMENT='订单商品表';

-- ----------------------------
--  Table structure for `ns_order_goods_express`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_goods_express`;
CREATE TABLE `ns_order_goods_express` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL COMMENT '订单id',
  `order_goods_id_array` varchar(255) NOT NULL COMMENT '订单项商品组合列表',
  `express_name` varchar(50) NOT NULL DEFAULT '' COMMENT '包裹名称  （包裹- 1 包裹 - 2）',
  `shipping_type` tinyint(4) NOT NULL COMMENT '发货方式1 需要物流 0无需物流',
  `express_company_id` int(11) NOT NULL COMMENT '快递公司id',
  `express_company` varchar(255) NOT NULL DEFAULT '' COMMENT '物流公司名称',
  `express_no` varchar(50) NOT NULL COMMENT '运单编号',
  `uid` int(11) NOT NULL COMMENT '用户id',
  `user_name` varchar(50) NOT NULL COMMENT '用户名',
  `memo` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  `shipping_time` int(11) DEFAULT '0' COMMENT '发货时间',
  PRIMARY KEY (`id`),
  KEY `UK_ns_order_goods_express_order_goods_id_array` (`order_goods_id_array`),
  KEY `UK_ns_order_goods_express_order_id` (`order_id`),
  KEY `UK_ns_order_goods_express_uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=606 COMMENT='商品订单物流信息表（多次发货）';

-- ----------------------------
--  Table structure for `ns_order_goods_promotion_details`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_goods_promotion_details`;
CREATE TABLE `ns_order_goods_promotion_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL COMMENT '订单ID',
  `sku_id` int(11) NOT NULL COMMENT '商品skuid',
  `promotion_type` varbinary(255) NOT NULL COMMENT '优惠类型规则ID（满减对应规则）',
  `promotion_id` int(11) NOT NULL COMMENT '优惠ID',
  `discount_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠的金额，单位：元，精确到小数点后两位',
  `used_time` int(11) DEFAULT '0' COMMENT '使用时间',
  PRIMARY KEY (`id`),
  KEY `IDX_ns_order_goods_promotion_d_order_id` (`order_id`),
  KEY `IDX_ns_order_goods_promotion_d_promotion_id` (`promotion_id`),
  KEY `IDX_ns_order_goods_promotion_d_promotion_type` (`promotion_type`),
  KEY `IDX_ns_order_goods_promotion_d_sku_id` (`sku_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='订单商品优惠详情';

-- ----------------------------
--  Table structure for `ns_order_payment`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_payment`;
CREATE TABLE `ns_order_payment` (
  `out_trade_no` varchar(30) NOT NULL COMMENT '支付单编号',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '执行支付的相关店铺ID（0平台）',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '订单类型1.商城订单2.交易商支付',
  `type_alis_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单类型关联ID',
  `pay_body` varchar(255) NOT NULL DEFAULT '' COMMENT '订单支付简介',
  `pay_detail` varchar(1000) NOT NULL DEFAULT '' COMMENT '订单支付详情',
  `pay_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '支付金额',
  `pay_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '支付状态',
  `pay_type` int(11) NOT NULL DEFAULT '1' COMMENT '支付方式',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `pay_time` int(11) DEFAULT '0' COMMENT '支付时间',
  `trade_no` varchar(30) NOT NULL DEFAULT '' COMMENT '交易号，支付宝退款用，微信传入空',
  KEY `IDX_ns_order_payment_out_trade_no` (`out_trade_no`),
  KEY `IDX_ns_order_payment_pay_status` (`pay_status`),
  KEY `IDX_ns_order_payment_pay_type` (`pay_type`),
  KEY `IDX_ns_order_payment_shop_id` (`shop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=963 COMMENT='订单支付表';

-- ----------------------------
--  Table structure for `ns_order_pickup`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_pickup`;
CREATE TABLE `ns_order_pickup` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `order_id` int(10) NOT NULL DEFAULT '0' COMMENT '订单ID',
  `name` varchar(255) NOT NULL COMMENT '自提点名称',
  `address` varchar(255) NOT NULL DEFAULT '' COMMENT '自提点地址',
  `contact` varchar(255) NOT NULL DEFAULT '' COMMENT '联系人',
  `phone` varchar(255) NOT NULL DEFAULT '' COMMENT '联系电话',
  `city_id` int(11) NOT NULL COMMENT '市ID',
  `province_id` int(11) NOT NULL COMMENT '省ID',
  `district_id` int(11) NOT NULL COMMENT '区县ID',
  `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应门店ID',
  `longitude` varchar(255) NOT NULL DEFAULT '' COMMENT '经度',
  `latitude` varchar(255) NOT NULL DEFAULT '' COMMENT '维度',
  `buyer_name` varchar(50) NOT NULL DEFAULT '' COMMENT '提货人姓名',
  `buyer_mobile` varchar(255) NOT NULL DEFAULT '' COMMENT '提货人电话',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '提货备注信息',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='订单自提点管理';

-- ----------------------------
--  Table structure for `ns_order_presell`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_presell`;
CREATE TABLE `ns_order_presell` (
  `presell_order_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '订单id',
  `out_trade_no` varchar(100) NOT NULL DEFAULT '0' COMMENT '外部交易号',
  `payment_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '支付类型',
  `order_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '订单状态 0创建 1尾款待支付 2开始结尾款 ',
  `pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '订单付款时间',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '订单创建时间',
  `operator_type` int(1) NOT NULL DEFAULT '0' COMMENT '操作人类型  1店铺  2用户',
  `operator_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人id',
  `relate_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联id',
  `presell_time` int(11) NOT NULL DEFAULT '0' COMMENT '预售结束时间',
  `presell_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '预售金额',
  `presell_pay` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '预售支付金额',
  `platform_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '平台余额',
  `point` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单消耗积分',
  `point_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单消耗积分抵多少钱',
  `presell_price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '预售金单价',
  `presell_delivery_type` int(11) NOT NULL DEFAULT '0' COMMENT '预售发货形式 1指定时间 2支付后天数',
  `presell_delivery_value` int(11) NOT NULL DEFAULT '0' COMMENT '预售发货时间 按形式 ',
  `presell_delivery_time` int(11) NOT NULL DEFAULT '0' COMMENT '预售发货具体时间（实则为结尾款时间）',
  `is_full_payment` int(11) NOT NULL DEFAULT '0' COMMENT '是否全款预定',
  PRIMARY KEY (`presell_order_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='预售订单表';

-- ----------------------------
--  Table structure for `ns_order_promotion_details`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_promotion_details`;
CREATE TABLE `ns_order_promotion_details` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `order_id` int(11) NOT NULL COMMENT '订单ID',
  `promotion_type_id` int(11) NOT NULL COMMENT '优惠类型规则ID（满减对应规则）',
  `promotion_id` int(11) NOT NULL COMMENT '优惠ID',
  `promotion_type` varchar(255) NOT NULL COMMENT '优惠类型',
  `promotion_name` varchar(50) NOT NULL COMMENT '该优惠活动的名称',
  `promotion_condition` varchar(255) NOT NULL DEFAULT '' COMMENT '优惠使用条件说明',
  `discount_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠的金额，单位：元，精确到小数点后两位',
  `used_time` int(11) DEFAULT '0' COMMENT '使用时间',
  PRIMARY KEY (`id`),
  KEY `UK_ns_order_promotion_details_order_id` (`order_id`),
  KEY `UK_ns_order_promotion_details_promotion_id` (`promotion_id`),
  KEY `UK_ns_order_promotion_details_promotion_type` (`promotion_type`),
  KEY `UK_ns_order_promotion_details_promotion_type_id` (`promotion_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=364 COMMENT='订单优惠详情';

-- ----------------------------
--  Table structure for `ns_order_refund`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_refund`;
CREATE TABLE `ns_order_refund` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `order_goods_id` int(11) NOT NULL COMMENT '订单商品表id',
  `refund_status` varchar(255) NOT NULL COMMENT '操作状态\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n流程状态(refund_status)	状态名称(refund_status_name)	操作时间\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n1	买家申请	发起了退款申请,等待卖家处理\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n2	等待买家退货	卖家已同意退款申请,等待买家退货\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n3	等待卖家确认收货	买家已退货,等待卖家确认收货\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n4	等待卖家确认退款	卖家同意退款\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n0	退款已成功	卖家退款给买家，本次维权结束\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n-1	退款已拒绝	卖家拒绝本次退款，本次维权结束\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n-2	退款已关闭	主动撤销退款，退款关闭\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n-3	退款申请不通过	拒绝了本次退款申请,等待买家修改\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',
  `action` varchar(255) NOT NULL COMMENT '退款操作内容描述',
  `action_way` tinyint(4) NOT NULL DEFAULT '0' COMMENT '操作方 1 买家 2 卖家',
  `action_userid` varchar(255) NOT NULL DEFAULT '0' COMMENT '操作人id',
  `action_username` varchar(255) NOT NULL DEFAULT '' COMMENT '操作人姓名',
  `action_time` int(11) DEFAULT '0' COMMENT '操作时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=108 COMMENT='订单商品退货退款操作表';

-- ----------------------------
--  Table structure for `ns_order_refund_account_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_refund_account_records`;
CREATE TABLE `ns_order_refund_account_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `order_goods_id` int(11) NOT NULL COMMENT '订单项id',
  `refund_trade_no` varchar(55) NOT NULL COMMENT '退款交易号',
  `refund_money` decimal(10,2) NOT NULL COMMENT '退款金额',
  `refund_way` int(11) NOT NULL COMMENT '退款方式（1：微信，2：支付宝，10：线下）',
  `buyer_id` int(11) NOT NULL COMMENT '买家id',
  `refund_time` int(11) NOT NULL COMMENT '退款时间',
  `remark` varchar(255) DEFAULT '' COMMENT '备注',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='订单退款账户记录';

-- ----------------------------
--  Table structure for `ns_order_shipping_fee`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_shipping_fee`;
CREATE TABLE `ns_order_shipping_fee` (
  `shipping_fee_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '运费模板ID',
  `shipping_fee_name` varchar(30) NOT NULL DEFAULT '' COMMENT '运费模板名称',
  `is_default` int(11) NOT NULL DEFAULT '0' COMMENT '是否是默认模板',
  `co_id` int(11) NOT NULL DEFAULT '0' COMMENT '物流公司ID',
  `shop_id` int(11) NOT NULL COMMENT '店铺ID',
  `province_id_array` text NOT NULL COMMENT '省ID组',
  `city_id_array` text NOT NULL COMMENT '市ID组',
  `weight_is_use` int(11) NOT NULL DEFAULT '1' COMMENT '是否启用重量运费',
  `weight_snum` decimal(8,2) NOT NULL DEFAULT '1.00' COMMENT '首重',
  `weight_sprice` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '首重运费',
  `weight_xnum` decimal(8,2) NOT NULL DEFAULT '1.00' COMMENT '续重',
  `weight_xprice` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '续重运费',
  `volume_is_use` int(11) NOT NULL DEFAULT '1' COMMENT '是否启用体积计算运费',
  `volume_snum` decimal(8,2) NOT NULL DEFAULT '1.00' COMMENT '首体积量',
  `volume_sprice` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '首体积运费',
  `volume_xnum` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '续体积量',
  `volume_xprice` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '续体积运费',
  `bynum_is_use` int(11) NOT NULL DEFAULT '1' COMMENT '是否启用计件方式运费',
  `bynum_snum` int(11) NOT NULL DEFAULT '0' COMMENT '首件',
  `bynum_sprice` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '首件运费',
  `bynum_xnum` int(11) NOT NULL DEFAULT '1' COMMENT '续件',
  `bynum_xprice` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '续件运费',
  `create_time` int(11) DEFAULT '0' COMMENT '创建日期',
  `update_time` int(11) DEFAULT '0' COMMENT '最后更新时间',
  `district_id_array` text COMMENT '区县ID组',
  PRIMARY KEY (`shipping_fee_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='运费模板';

-- ----------------------------
--  Table structure for `ns_order_shop_return`
-- ----------------------------
DROP TABLE IF EXISTS `ns_order_shop_return`;
CREATE TABLE `ns_order_shop_return` (
  `shop_id` int(11) NOT NULL,
  `shop_address` varchar(255) NOT NULL DEFAULT '' COMMENT '商家地址',
  `seller_name` varchar(50) NOT NULL DEFAULT '' COMMENT '收件人',
  `seller_mobile` varchar(30) NOT NULL DEFAULT '' COMMENT '收件人手机号',
  `seller_zipcode` varchar(20) NOT NULL DEFAULT '' COMMENT '邮编',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`shop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='店铺退货设置';

-- ----------------------------
--  Records of `ns_order_shop_return`
-- ----------------------------
BEGIN;
INSERT INTO `ns_order_shop_return` VALUES ('0', '', '', '', '', '1548753214', '0');
COMMIT;

-- ----------------------------
--  Table structure for `ns_pickup_point`
-- ----------------------------
DROP TABLE IF EXISTS `ns_pickup_point`;
CREATE TABLE `ns_pickup_point` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺ID',
  `name` varchar(255) NOT NULL COMMENT '自提点名称',
  `address` varchar(255) NOT NULL DEFAULT '' COMMENT '自提点地址',
  `contact` varchar(255) NOT NULL DEFAULT '' COMMENT '联系人',
  `phone` varchar(255) NOT NULL DEFAULT '' COMMENT '联系电话',
  `city_id` int(11) NOT NULL COMMENT '市ID',
  `province_id` int(11) NOT NULL COMMENT '省ID',
  `district_id` int(11) NOT NULL COMMENT '区县ID',
  `supplier_id` int(11) NOT NULL DEFAULT '0' COMMENT '供应门店ID',
  `longitude` varchar(255) NOT NULL DEFAULT '' COMMENT '经度',
  `latitude` varchar(255) NOT NULL DEFAULT '' COMMENT '维度',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='自提点管理';

-- ----------------------------
--  Table structure for `ns_platform_adv`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_adv`;
CREATE TABLE `ns_platform_adv` (
  `adv_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '广告自增标识编号',
  `ap_id` mediumint(8) unsigned NOT NULL COMMENT '广告位id',
  `adv_title` varchar(255) NOT NULL DEFAULT '' COMMENT '广告内容描述',
  `adv_url` text,
  `adv_image` varchar(1000) NOT NULL DEFAULT '' COMMENT '广告内容图片',
  `slide_sort` int(11) DEFAULT NULL,
  `click_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '广告点击率',
  `background` varchar(255) NOT NULL DEFAULT '#FFFFFF' COMMENT '背景色',
  `adv_code` text NOT NULL COMMENT '广告代码',
  PRIMARY KEY (`adv_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1170 COMMENT='广告表';

-- ----------------------------
--  Table structure for `ns_platform_adv_position`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_adv_position`;
CREATE TABLE `ns_platform_adv_position` (
  `ap_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '广告位置id',
  `ap_name` varchar(100) NOT NULL COMMENT '广告位置名',
  `ap_intro` varchar(255) NOT NULL COMMENT '广告位简介',
  `ap_class` smallint(1) unsigned NOT NULL COMMENT '广告类别：0图片1文字2幻灯3Flash',
  `ap_display` smallint(1) unsigned NOT NULL COMMENT '广告展示方式：0幻灯片1多广告展示2单广告展示',
  `is_use` smallint(1) unsigned NOT NULL COMMENT '广告位是否启用：0不启用1启用',
  `ap_height` int(10) NOT NULL COMMENT '广告位高度',
  `ap_width` int(10) NOT NULL COMMENT '广告位宽度',
  `ap_price` int(10) NOT NULL DEFAULT '0' COMMENT '广告位单价',
  `adv_num` int(10) NOT NULL DEFAULT '0' COMMENT '拥有的广告数',
  `click_num` int(10) NOT NULL DEFAULT '0' COMMENT '广告位点击率',
  `default_content` varchar(300) DEFAULT NULL,
  `ap_background_color` varchar(50) NOT NULL DEFAULT '#FFFFFF' COMMENT '广告位背景色 默认白色',
  `type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '广告位所在位置类型   1 pc端  2 手机端',
  `instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `is_del` int(11) DEFAULT '0',
  `ap_keyword` varchar(100) NOT NULL DEFAULT '' COMMENT '广告位关键字',
  PRIMARY KEY (`ap_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6673 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1489 COMMENT='广告位表';

-- ----------------------------
--  Records of `ns_platform_adv_position`
-- ----------------------------
BEGIN;
INSERT INTO `ns_platform_adv_position` VALUES ('1051', '商城首页最顶部广告位', '商城首页最顶部广告位', '0', '2', '1', '1000', '1000', '0', '0', '0', '', '#000000', '1', '0', '1', ''), ('1052', '商城首页logo右侧小广告', '商城首页logo右侧小广告', '0', '2', '1', '90', '170', '0', '0', '0', 'public/static/images/default_img_url/shouyelogo.png', '#FFFFFF', '1', '0', '1', ''), ('1053', '商城首页滚动图广告位', '商城首页滚动图广告位', '0', '2', '1', '443', '800', '0', '0', '0', '', '#FFFFFF', '1', '0', '1', ''), ('1054', '商城首页中部推荐广告位', '商城首页中部推荐广告位（140*242）', '0', '2', '1', '140', '242', '0', '0', '0', '', '', '1', '0', '1', ''), ('1056', '商城限时折扣轮播广告位', '商城限时折扣轮播广告位', '0', '2', '1', '443', '1903', '0', '0', '0', 'public/static/images/default_img_url/xianshizhekou.png', '#FFFFFF', '1', '0', '1', ''), ('1075', '商城品牌专区轮播广告位', '商城品牌专区轮播广告位', '0', '0', '1', '443', '1210', '0', '0', '0', 'public/static/images/default_img_url/pinpaizhuanqu.png', '#000000', '1', '0', '1', ''), ('1076', '商城积分中心轮播广告位', '商城积分中心轮播广告位', '0', '2', '1', '320', '910', '0', '0', '0', 'public/static/images/default_img_url/jifenzhongxin.jpg', '#000000', '1', '0', '1', ''), ('1102', '商城积分中心中部广告位', '商城积分中心中部广告位', '0', '2', '1', '60', '1210', '0', '0', '0', 'public/static/images/default_img_url/jifenzhongxinzhongbu.jpg', '#000000', '1', '0', '1', ''), ('1103', '商城登录页面轮播广告位', '商城登录页面轮播广告位', '0', '0', '1', '0', '0', '0', '0', '0', '', '', '1', '0', '1', ''), ('1105', '手机端首页轮播广告位', '手机端首页轮播广告位', '0', '1', '1', '175', '320', '0', '0', '0', 'public/static/images/default_img_url/waplunbo.png', '', '2', '0', '1', ''), ('1152', '手机端会员中心广告位', '手机端会员中心广告位', '0', '2', '1', '100', '750', '0', '0', '0', 'public/static/images/default_img_url/waphuiyuanzhongxin.png', '', '2', '0', '1', ''), ('1162', '手机端品牌专区广告位', '品牌专区广告', '0', '2', '1', '192', '720', '0', '0', '0', 'public/static/images/default_img_url/wappinpaizhuanqu.png', '', '2', '0', '1', ''), ('1163', '手机端限时折扣专区广告位', '限时折扣专区广告位', '0', '2', '1', '130', '720', '0', '0', '0', 'public/static/images/default_img_url/wapxianshizhekou.png', '', '2', '0', '1', ''), ('1164', '手机端首页商城热卖广告位', '手机端商城热卖', '0', '2', '1', '100', '100', '0', '0', '0', 'public/static/images/default_img_url/wapshangchengremai.png', '#000000', '2', '0', '1', ''), ('1165', '手机端积分中心广告位', '积分中心广告位', '0', '2', '1', '100', '100', '0', '0', '0', 'public/static/images/default_img_url/wapjifenzhongxin.png', '#000000', '2', '0', '1', ''), ('6666', '商城促销专区轮播广告位', '促销专区广告位', '0', '0', '1', '443', '1210', '0', '0', '0', 'upload/image_collection/1513820257.png', '#000000', '1', '0', '1', ''), ('6667', '手机端标签专区广告位', '手机端标签专区广告位', '0', '2', '1', '192', '720', '0', '0', '0', 'upload/image_collection/1519813844.png', '#000000', '2', '0', '1', 'goodsLabel'), ('6668', '商城注册页面广告位', '商城注册页面广告位', '0', '2', '1', '220', '420', '0', '0', '0', 'upload/image_collection/1522752723.png', '#ffffff', '1', '0', '1', 'pcRegisterAdv'), ('6669', '手机端登录注册广告位', '手机端登录注册广告位', '0', '2', '1', '100', '100', '0', '0', '0', 'upload/image_collection/1522752598.png', '#ffffff', '2', '0', '1', 'wapLogAndRegAdv'), ('6670', '团购专区广告位', '团购专区广告位', '0', '0', '1', '443', '1210', '0', '0', '0', 'upload/image_collection/1522752990.png', '#000000', '2', '0', '1', 'groupBuyArea'), ('6671', '专题活动广告位', '专题活动广告位', '0', '0', '1', '443', '1210', '0', '0', '0', 'upload/image_collection/1522752990.png', '#000000', '2', '0', '1', 'promotionTopic'), ('6672', '手机端专题活动广告位', '手机端专题活动广告位', '0', '2', '1', '192', '720', '0', '0', '0', 'upload/image_collection/1519813844.png', '#000000', '2', '0', '1', 'wapPromotionTopic');
COMMIT;

-- ----------------------------
--  Table structure for `ns_platform_block`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_block`;
CREATE TABLE `ns_platform_block` (
  `block_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `is_display` smallint(4) NOT NULL DEFAULT '1' COMMENT '是否显示',
  `block_color` varchar(255) NOT NULL COMMENT '颜色风格',
  `sort` int(11) DEFAULT NULL,
  `block_name` varchar(50) NOT NULL DEFAULT '' COMMENT '板块名称',
  `block_short_name` varchar(50) DEFAULT NULL COMMENT '板块简称',
  `recommend_ad_image_name` varchar(50) NOT NULL DEFAULT '' COMMENT '推荐单图广告位名称',
  `recommend_ad_image` int(11) NOT NULL DEFAULT '0' COMMENT '推荐单图广告位',
  `recommend_ad_slide_name` varchar(50) NOT NULL DEFAULT '' COMMENT '推荐幻灯广告位名称',
  `recommend_ad_slide` int(11) NOT NULL COMMENT '推荐幻灯广告位',
  `recommend_ad_images_name` varchar(255) NOT NULL DEFAULT '0' COMMENT '推荐多图广告位名称',
  `recommend_ad_images` int(11) NOT NULL DEFAULT '0' COMMENT '推荐多图广告位',
  `recommend_brands` varchar(255) NOT NULL DEFAULT '' COMMENT '推荐品牌',
  `recommend_categorys` varchar(255) NOT NULL DEFAULT '' COMMENT '推荐商品分类',
  `recommend_goods_category_name_1` varchar(50) NOT NULL DEFAULT '' COMMENT '推荐分类商品别名',
  `recommend_goods_category_1` int(11) NOT NULL DEFAULT '0' COMMENT '推荐显示商品分类',
  `recommend_goods_category_name_2` varchar(50) NOT NULL DEFAULT '' COMMENT '推荐分类商品别名',
  `recommend_goods_category_2` int(11) NOT NULL DEFAULT '0' COMMENT '推荐显示商品分类',
  `recommend_goods_category_name_3` varchar(50) NOT NULL DEFAULT '' COMMENT '推荐分类商品别名',
  `recommend_goods_category_3` int(11) NOT NULL DEFAULT '0' COMMENT '推荐显示商品分类',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `block_data` longtext COMMENT '板块数据',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '更新时间',
  PRIMARY KEY (`block_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2340 COMMENT='首页促销板块';

-- ----------------------------
--  Table structure for `ns_platform_goods_recommend`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_goods_recommend`;
CREATE TABLE `ns_platform_goods_recommend` (
  `recommend_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `goods_id` int(11) NOT NULL COMMENT '推荐商品ID',
  `state` int(11) NOT NULL DEFAULT '1' COMMENT '推荐状态',
  `class_id` int(11) NOT NULL DEFAULT '1' COMMENT '推荐类型',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`recommend_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=442 COMMENT='平台商品推荐';

-- ----------------------------
--  Table structure for `ns_platform_goods_recommend_class`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_goods_recommend_class`;
CREATE TABLE `ns_platform_goods_recommend_class` (
  `class_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `class_name` varchar(50) NOT NULL DEFAULT '' COMMENT '类型名称',
  `class_type` int(11) NOT NULL DEFAULT '1' COMMENT '推荐模块1.系统固有模块2.平台增加模块',
  `is_use` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否使用',
  `sort` int(11) NOT NULL DEFAULT '255' COMMENT '排序号',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `show_type` int(11) NOT NULL DEFAULT '0' COMMENT '展示类型  0电脑端  1手机端',
  PRIMARY KEY (`class_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2340 COMMENT='店铺商品推荐类别';

-- ----------------------------
--  Table structure for `ns_platform_help_class`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_help_class`;
CREATE TABLE `ns_platform_help_class` (
  `class_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '表主键',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '1.帮助类别2.会员协议类别3.开店协议类别',
  `class_name` varchar(50) NOT NULL DEFAULT '' COMMENT '类型名称',
  `parent_class_id` int(11) NOT NULL DEFAULT '0' COMMENT '上级ID',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
  PRIMARY KEY (`class_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='平台说明类型';

-- ----------------------------
--  Records of `ns_platform_help_class`
-- ----------------------------
BEGIN;
INSERT INTO `ns_platform_help_class` VALUES ('1', '1', '新手上路', '0', '1'), ('2', '1', '配送与支付', '0', '2'), ('3', '1', '会员中心', '0', '3'), ('4', '1', '服务保证', '0', '4'), ('5', '1', '联系我们', '0', '5');
COMMIT;

-- ----------------------------
--  Table structure for `ns_platform_help_document`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_help_document`;
CREATE TABLE `ns_platform_help_document` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '表主键',
  `uid` int(11) NOT NULL COMMENT '最后修改人ID',
  `class_id` int(11) NOT NULL COMMENT '所属说明类型ID',
  `title` varchar(255) NOT NULL DEFAULT '' COMMENT '主题',
  `link_url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
  `content` text NOT NULL COMMENT '内容',
  `image` varchar(255) NOT NULL DEFAULT '' COMMENT '图片',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modufy_time` int(11) DEFAULT '0' COMMENT '修改时间',
  `is_visibility` int(11) DEFAULT '1' COMMENT '是否可见',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1489 COMMENT='平台说明内容';

-- ----------------------------
--  Records of `ns_platform_help_document`
-- ----------------------------
BEGIN;
INSERT INTO `ns_platform_help_document` VALUES ('1', '87', '1', '购物流程', '', '0', '', '', '0', '1498471779', '1'), ('2', '2', '2', '支付方式说明', '', '5', '<p>支付方式说明</p>', '', '0', '1493810155', '1'), ('3', '87', '3', '售后流程', '', '1', '', '', '0', '1499240296', '1'), ('5', '2', '3', '资金管理', '', '6', '<p>资金管理</p>', '', '0', '1493964639', '1'), ('6', '2', '3', '我的收藏', '', '7', '<p>我的收藏</p>', '', '0', '1493809215', '1'), ('7', '2', '2', '货到付款区域', '', '3', '<p>货到付款区域</p>', '', '1487559901', '1493810113', '1'), ('8', '2', '2', '配送支付智能查询', '', '4', '<p>配送支付智能查询</p>', '', '1487559942', '1493810133', '1'), ('9', '2', '4', '退换货原则', '', '9', '<p>退换货原则</p>', '', '1487560238', '1493809406', '1'), ('10', '2', '4', '售后服务保证', '', '9', '<p>售后服务保证</p>', '', '1487560263', '1493809427', '1'), ('11', '2', '4', '产品质量保证', '', '10', '<p>产品质量保证</p>', '', '1487560296', '1493809443', '1'), ('12', '2', '5', '网站故障报告', '', '11', '<p>网站故障报告</p>', '', '1487560338', '1493809546', '1'), ('13', '87', '13', '订购方式', '', '2', '', '', '1493206148', '1498469763', '1'), ('14', '1', '3', '我的订单', '', '8', '<p>我的订单</p>', '', '1493809066', '1497102958', '1'), ('15', '2', '5', '选机咨询', '', '12', '<p>选机咨询</p>', '', '1493809482', '1493809565', '1'), ('16', '2', '5', '投诉与建议', '', '13', '<p>投诉与建议</p>', '', '1493809511', '1493964721', '1'), ('17', '87', '6', '用户注册协议', '', '0', '<p><span style=\"color: rgb(102, 102, 102); font-family: &quot;Microsoft Yahei&quot;, &quot;Lucida Grande&quot;, Verdana, Lucida, Helvetica, Arial, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);\">牛酷商城用户注册协议本协议是您与牛酷商城网站（简称&quot;本站&quot;）所有者（以下简称为&quot;牛酷商城&quot;）之间就牛酷商城网站服务等相关事宜所订立的契约，请您仔细阅读本注册协议，您点击&quot;同意并继续&quot;按钮后，本协议即构成对双方有约束力的法律文件。第1条 本站服务条款的确认和接纳1.1本站的各项电子服务的所有权和运作权归牛酷商城所有。用户同意所有注册协议条款并完成注册程序，才能成为本站的正式用户。用户确认：本协议条款是处理双方权利义务的契约，始终有效，法律另有强制性规定或双方另有特别约定的，依其规定。1.2用户点击同意本协议的，即视为用户确认自己具有享受本站服务、下单购物等相应的权利能力和行为能力，能够独立承担法律责任。1.3如果您在18周岁以下，您只能在父母或监护人的监护参与下才能使用本站。第2条 本站服务2.1牛酷商城通过互联网依法为用户提供互联网信息等服务，用户在完全同意本协议及本站规定的情况下，方有权使用本站的相关服务。2.2用户必须自行准备如下设备和承担如下开支：（1）上网设备，包括并不限于电脑或者其他上网终端、调制解调器及其他必备的上网装置；（2）上网开支，包括并不限于网络接入费、上网设备租用费、手机流量费等。第3条 用户信息3.1用户应自行诚信向本站提供注册资料，用户同意其提供的注册资料真实、准确、完整、合法有效，用户注册资料如有变动的，应及时更新其注册资料。如果用户提供的注册资料不合法、不真实、不准确、不详尽的，用户需承担因此引起的相应责任及后果，并且牛酷商城保留终止用户使用牛酷商城各项服务的权利。3.2用户在本站进行浏览、下单购物等活动时，涉及用户真实姓名/名称、通信地址、联系电话、电子邮箱等隐私信息的，本站将予以严格保密，除非得到用户的授权或法律另有规定，本站不会向外界披露用户隐私信息。第4条 用户依法言行义务本协议依据国家相关法律法规规章制定，用户同意严格遵守以下义务：（1）不得传输或发表：煽动抗拒、破坏宪法和法律、行政法规实施的言论，煽动颠覆国家政权，推翻社会主义制度的言论，煽动分裂国家、破坏国家统一的的言论，煽动民族仇恨、民族歧视、破坏民族团结的言论；（2）从中国大陆向境外传输资料信息时必须符合中国有关法规；第5条 其他5.1牛酷商城网站所有者是指在政府部门依法许可或备案的牛酷商城网站经营主体。5.2您点击本协议下方的&quot;同意并继续&quot;按钮即视为您完全接受本协议，在点击之前请您再次确认已知悉并完全理解本协议的全部内容。</span></p>', '', '1499325553', '1499325616', '1');
COMMIT;

-- ----------------------------
--  Table structure for `ns_platform_link`
-- ----------------------------
DROP TABLE IF EXISTS `ns_platform_link`;
CREATE TABLE `ns_platform_link` (
  `link_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '索引id',
  `link_title` varchar(100) NOT NULL COMMENT '标题',
  `link_url` varchar(100) NOT NULL COMMENT '链接',
  `link_pic` varchar(100) NOT NULL COMMENT '图片',
  `link_sort` int(11) DEFAULT NULL,
  `is_blank` int(11) NOT NULL DEFAULT '1' COMMENT '是否新窗口打开 1.是 2.否',
  `is_show` int(11) NOT NULL DEFAULT '1' COMMENT '是否显示 1.是 2.否',
  PRIMARY KEY (`link_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=50 COMMENT='友情链接表';

-- ----------------------------
--  Table structure for `ns_point_config`
-- ----------------------------
DROP TABLE IF EXISTS `ns_point_config`;
CREATE TABLE `ns_point_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL COMMENT '店铺ID',
  `is_open` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否启动',
  `convert_rate` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '1积分对应金额',
  `desc` text NOT NULL COMMENT '积分说明',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='积分设置表';

-- ----------------------------
--  Records of `ns_point_config`
-- ----------------------------
BEGIN;
INSERT INTO `ns_point_config` VALUES ('1', '0', '0', '0.00', '', '1548752712', '0');
COMMIT;

-- ----------------------------
--  Table structure for `ns_promotion_bundling`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_bundling`;
CREATE TABLE `ns_promotion_bundling` (
  `bl_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合ID',
  `bl_name` varchar(50) NOT NULL COMMENT '组合名称',
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `shop_name` varchar(100) NOT NULL COMMENT '店铺名称',
  `bl_price` decimal(10,2) NOT NULL COMMENT '商品组合价格',
  `shipping_fee_type` tinyint(1) NOT NULL COMMENT '运费承担方式 1卖家承担运费 2买家承担运费',
  `shipping_fee` decimal(10,2) NOT NULL COMMENT '运费',
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '组合状态 0-关闭/1-开启',
  PRIMARY KEY (`bl_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='组合销售活动表';

-- ----------------------------
--  Table structure for `ns_promotion_bundling_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_bundling_goods`;
CREATE TABLE `ns_promotion_bundling_goods` (
  `bl_goods_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合商品id',
  `bl_id` int(11) NOT NULL COMMENT '组合id',
  `goods_id` int(10) unsigned NOT NULL COMMENT '商品id',
  `goods_name` varchar(50) NOT NULL COMMENT '商品名称',
  `goods_picture` varchar(100) NOT NULL COMMENT '商品图片',
  `bl_goods_price` decimal(10,2) NOT NULL COMMENT '商品组合价格',
  `sort` int(11) DEFAULT NULL,
  PRIMARY KEY (`bl_goods_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='组合销售活动商品表';

-- ----------------------------
--  Table structure for `ns_promotion_discount`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_discount`;
CREATE TABLE `ns_promotion_discount` (
  `discount_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL DEFAULT '1' COMMENT '店铺ID',
  `shop_name` varchar(50) NOT NULL DEFAULT '' COMMENT '店铺名称',
  `discount_name` varchar(255) NOT NULL DEFAULT '' COMMENT '活动名称',
  `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '活动状态(0-未发布/1-正常/3-关闭/4-结束)',
  `remark` text NOT NULL COMMENT '备注',
  `start_time` int(11) DEFAULT '0' COMMENT '开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '结束时间',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  `decimal_reservation_number` int(2) NOT NULL DEFAULT '-1' COMMENT '价格保留方式 0去掉角和分 1去掉分',
  PRIMARY KEY (`discount_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='限时折扣';

-- ----------------------------
--  Table structure for `ns_promotion_discount_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_discount_goods`;
CREATE TABLE `ns_promotion_discount_goods` (
  `discount_goods_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `discount_id` int(11) NOT NULL COMMENT '对应活动',
  `goods_id` int(11) NOT NULL COMMENT '商品ID',
  `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',
  `discount` decimal(10,2) NOT NULL COMMENT '活动折扣或者减现信息',
  `goods_name` varchar(255) NOT NULL DEFAULT '' COMMENT '商品名称',
  `goods_picture` int(11) NOT NULL COMMENT '商品图片',
  `start_time` int(11) DEFAULT '0' COMMENT '开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '结束时间',
  `decimal_reservation_number` int(2) NOT NULL DEFAULT '-1' COMMENT '价格保留方式 0去掉角和分 1去掉分',
  PRIMARY KEY (`discount_goods_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=712 COMMENT='限时折扣商品列表';

-- ----------------------------
--  Table structure for `ns_promotion_full_mail`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_full_mail`;
CREATE TABLE `ns_promotion_full_mail` (
  `mail_id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `is_open` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否开启 0未开启 1已开启',
  `full_mail_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '包邮所需订单金额',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '更新时间',
  `no_mail_province_id_array` text NOT NULL COMMENT '不包邮省id组',
  `no_mail_city_id_array` text NOT NULL COMMENT '不包邮市id组',
  PRIMARY KEY (`mail_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='满额包邮';

-- ----------------------------
--  Records of `ns_promotion_full_mail`
-- ----------------------------
BEGIN;
INSERT INTO `ns_promotion_full_mail` VALUES ('1', '0', '0', '0.00', '1548752728', '0', '', '');
COMMIT;

-- ----------------------------
--  Table structure for `ns_promotion_game_rule`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_game_rule`;
CREATE TABLE `ns_promotion_game_rule` (
  `rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则id',
  `game_id` int(11) NOT NULL DEFAULT '0' COMMENT '游戏id',
  `rule_num` int(11) NOT NULL DEFAULT '0' COMMENT '奖品数量',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '奖励类型1. 积分 2. 优惠券3.红包4.赠品...',
  `coupon_type_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券类型id',
  `points` int(11) NOT NULL DEFAULT '0' COMMENT '奖励积分数',
  `hongbao` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '奖励红包数',
  `gift_id` int(11) NOT NULL DEFAULT '0' COMMENT '赠品id',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '规则关键字',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `rule_name` varchar(50) NOT NULL DEFAULT '' COMMENT '奖励规则等级',
  `type_value` varchar(255) NOT NULL DEFAULT '' COMMENT '奖励的具体的对应信息名称',
  `remaining_number` int(11) DEFAULT '0' COMMENT '剩余奖品数量',
  PRIMARY KEY (`rule_id`),
  KEY `IDX_ns_promotion_game_rule_coupon_type_id` (`coupon_type_id`),
  KEY `IDX_ns_promotion_game_rule_game_id` (`game_id`),
  KEY `IDX_ns_promotion_game_rule_type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='游戏活动规则';

-- ----------------------------
--  Table structure for `ns_promotion_game_type`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_game_type`;
CREATE TABLE `ns_promotion_game_type` (
  `game_type` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type_name` varchar(50) NOT NULL DEFAULT '' COMMENT '类型名称',
  `type_image` varchar(255) NOT NULL DEFAULT '' COMMENT '活动类型默认背景图',
  `type_ico` varchar(255) NOT NULL DEFAULT '' COMMENT '活动小图标',
  `type_des` varchar(255) NOT NULL DEFAULT '' COMMENT '活动介绍',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `is_complete` int(11) NOT NULL DEFAULT '0' COMMENT '是否完成',
  `game_text` text NOT NULL,
  PRIMARY KEY (`game_type`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1638 COMMENT='营销游戏类型';

-- ----------------------------
--  Records of `ns_promotion_game_type`
-- ----------------------------
BEGIN;
INSERT INTO `ns_promotion_game_type` VALUES ('1', '签到', 'games/promotion_game_guaguale.png', 'games/a9823df5d5cf4d748e1aa4ee47dee075.png', '每日签到领取积分或奖励', '0', '0', '<div class=\"app-preview\">\r\n			<div class=\"app-header\"></div>\r\n			<div class=\"app-entry\">\r\n				<div class=\"app-config\">\r\n					<div class=\"app-field\">\r\n\r\n						<h1>刮刮卡</h1>\r\n\r\n					</div>\r\n				</div>\r\n				<div class=\"snapshot-wrap\">\r\n					<div>\r\n						<div class=\"apps-cards-wrap\">\r\n							<div class=\"apps-cards\">\r\n								<div class=\"logo\"></div>\r\n\r\n								<div class=\"scratch-wrap\">\r\n									<div class=\"result-area\">\r\n										<div class=\"face-area\"></div>\r\n										<div class=\"result-content-wap\">\r\n											<p class=\"result-title\">真遗憾，未中奖！</p>\r\n											<p class=\"result-content\"></p>\r\n										</div>\r\n									</div>\r\n									<div class=\"scratch-area\">\r\n										<div\r\n											style=\"position: relative; width: 255px; height: 145px; cursor: default;\"></div>\r\n									</div>\r\n								</div>\r\n\r\n								<div class=\"info-area\">\r\n									<ul class=\"activity-info\">\r\n										<li>1.活动有效时间：\r\n											<div class=\"activity-info-content\">\r\n												<span data-name=\"start_time\">无</span> 至 <span\r\n													data-name=\"end_time\">无</span>\r\n											</div>\r\n										</li>\r\n\r\n										<li>2.发行方：\r\n											<div class=\"activity-info-content\" data-name=\"team_name\">大转盘</div>\r\n										</li>\r\n\r\n										<p class=\"activity-note\">\r\n											备注：中奖积分请到<span class=\"snapshot-user-center\">会员主页</span>查看<br>\r\n											<span style=\"width: 3em; display: inline-block\"></span>中奖奖品请到我的奖品查看\r\n										</p>\r\n									</ul>\r\n								</div>\r\n								<div class=\"bottom-button-area\">\r\n									<div class=\"bottom-button\">我的奖品</div>\r\n									<div class=\"bottom-button\">进店逛逛</div>\r\n								</div>\r\n							</div>\r\n						</div>\r\n					</div>\r\n				</div>\r\n			</div>\r\n		</div>'), ('2', '投票调查', 'games/promotion_game_guaguale.png', 'games/32b16300c47fdea92d1efdc87189e640.png', '创建在线投票调查页面', '1', '0', ''), ('3', '刮刮卡', 'games/promotion_game_guaguale.png', 'games/b4c30bad203a9ad37c92b7c52d5d422d.png', '通过刮开卡片进行抽奖的玩法', '2', '1', '<div class=\"app-preview\">\r\n			<div class=\"app-header\"></div>\r\n			<div class=\"app-entry\">\r\n				<div class=\"app-config\">\r\n					<div class=\"app-field\">\r\n\r\n						<h1>刮刮卡</h1>\r\n\r\n					</div>\r\n				</div>\r\n				<div class=\"snapshot-wrap\">\r\n					<div>\r\n						<div class=\"apps-cards-wrap\">\r\n							<div class=\"apps-cards\">\r\n								<div class=\"logo\"></div>\r\n\r\n								<div class=\"scratch-wrap\">\r\n									<div class=\"result-area\">\r\n										<div class=\"face-area\"></div>\r\n										<div class=\"result-content-wap\">\r\n											<p class=\"result-title\">真遗憾，未中奖！</p>\r\n											<p class=\"result-content\"></p>\r\n										</div>\r\n									</div>\r\n									<div class=\"scratch-area\">\r\n										<div\r\n											style=\"position: relative; width: 255px; height: 145px; cursor: default;\"></div>\r\n									</div>\r\n								</div>\r\n\r\n								<div class=\"info-area\">\r\n									<ul class=\"activity-info\">\r\n										<li>1.活动有效时间：\r\n											<div class=\"activity-info-content\">\r\n												<span data-name=\"start_time\">无</span> 至 <span\r\n													data-name=\"end_time\">无</span>\r\n											</div>\r\n										</li>\r\n\r\n										<li>2.发行方：\r\n											<div class=\"activity-info-content\" data-name=\"team_name\">大转盘</div>\r\n										</li>\r\n\r\n										<p class=\"activity-note\">\r\n											备注：中奖积分请到<span class=\"snapshot-user-center\">会员主页</span>查看<br>\r\n											<span style=\"width: 3em; display: inline-block\"></span>中奖奖品请到我的奖品查看\r\n										</p>\r\n									</ul>\r\n								</div>\r\n								<div class=\"bottom-button-area\">\r\n									<div class=\"bottom-button\">我的奖品</div>\r\n									<div class=\"bottom-button\">进店逛逛</div>\r\n								</div>\r\n							</div>\r\n						</div>\r\n					</div>\r\n				</div>\r\n			</div>\r\n		</div>'), ('4', '疯狂猜', '', 'games/c974f8863a1d61b2425eea388444ce3c.png', '回答问题，按答题情况给奖励', '3', '0', ''), ('5', '生肖翻翻看', '', 'games/4c799b9f1a51e9edf57fa49229c814b5.png', '通过翻卡片进行抽奖的玩法', '4', '0', ''), ('6', '分场次即时抽奖', '', 'games/cb1c557a9cab0117999b370dc7eaa7e1.png', '多个场次，⽴即抽奖', '5', '0', ''), ('7', '幸运砸蛋', 'games/promotion_game_zadan.png', 'games/03aa1ac9b94e2b9c47f47360e98c25c0.png', '好运砸出来', '6', '1', ''), ('8', '幸运大抽奖', 'games/promotion_game_dazhuanpan.png', 'games/57ebd7f399284e9eb7f2a779bec77362.png', '常见的转盘式抽奖玩法', '7', '1', '<div class=\"app-preview\">\r\n			<div class=\"app-header\"></div>\r\n			<div class=\"app-entry\">\r\n				<div class=\"app-config\">\r\n					<div class=\"app-field\">\r\n\r\n						<h1>幸运大抽奖</h1>\r\n\r\n					</div>\r\n				</div>\r\n				<div class=\"snapshot-wrap\">\r\n					<div>\r\n						<div class=\"apps-wheel-wrap\">\r\n							<div class=\"apps-wheel\">\r\n								<div class=\"logo\"></div>\r\n								<div class=\"wheel-wrap\">\r\n									<ul class=\"wheel\">\r\n										<li class=\"wheel-row-wrap\">\r\n											<ul class=\"wheel-row\">\r\n												<li class=\"wheel-block prize4\" data-index=\"0\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block even prize-again\" data-index=\"1\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block prize2\" data-index=\"2\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block even prize3\" data-index=\"3\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n											</ul>\r\n										</li>\r\n										<li class=\"wheel-row-wrap\">\r\n											<ul class=\"wheel-row wheel-sep-row\">\r\n												<li class=\"wheel-block even prize-again\" data-index=\"11\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block prize-no\" data-index=\"4\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n											</ul>\r\n										</li>\r\n										<li class=\"wheel-row-wrap\">\r\n											<ul class=\"wheel-row wheel-sep-row\">\r\n												<li class=\"wheel-block prize3\" data-index=\"10\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block even prize1\" data-index=\"5\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n											</ul>\r\n										</li>\r\n										<li class=\"wheel-row-wrap\">\r\n											<ul class=\"wheel-row\">\r\n												<li class=\"wheel-block even prize-no\" data-index=\"9\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block prize2\" data-index=\"8\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block even prize-again\" data-index=\"7\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n												<li class=\"wheel-block prize4\" data-index=\"6\">\r\n													<div class=\"wheel-icon\"></div>\r\n												</li>\r\n											</ul>\r\n										</li>\r\n									</ul>\r\n									<div class=\"middle-button-area\">\r\n										<div class=\"middle-button js-start-btn\"></div>\r\n									</div>\r\n								</div>\r\n\r\n								<div class=\"info-area\">\r\n									<div class=\"view-prize\">查看奖品</div>\r\n									<ul class=\"activity-info\">\r\n										<li>1.活动有效时间：\r\n											<div class=\"activity-info-content\">\r\n												<span data-name=\"start_time\">2018-01-30 00:00:00</span> 至 <span\r\n													data-name=\"end_time\">2018-01-31 00:00:00</span>\r\n											</div>\r\n										</li>\r\n\r\n										<li>2.活动说明：\r\n											<div class=\"activity-info-content\" data-name=\"notice\">11</div>\r\n										</li>\r\n										<li>3.发行方：\r\n											<div class=\"activity-info-content\" data-name=\"team_name\">大转盘</div>\r\n										</li>\r\n\r\n									</ul>\r\n								</div>\r\n							</div>\r\n						</div>\r\n					</div>\r\n				</div>\r\n			</div>\r\n		</div>'), ('9', '摇一摇', '', 'games/550ff65e15ef30d0d21db4dcad4ce49a.png', '让客户摇一摇，进行抽奖', '8', '0', '<div class=\"app-preview\">\r\n			<div class=\"app-header\"></div>\r\n			<div class=\"app-entry\">\r\n				<div class=\"app-config\">\r\n					<div class=\"app-field\">\r\n\r\n						<h1>摇一摇</h1>\r\n\r\n					</div>\r\n				</div>\r\n				<div class=\"snapshot-wrap\">\r\n					<div>\r\n						<div class=\"apps-shake-wrap\">\r\n							<div class=\"apps-shake\">\r\n								<div class=\"wheel-wrap\">\r\n									<div class=\"shake-box-container\">\r\n										<div class=\"shake-box disabled\">\r\n											<div class=\"cap cap-animate\"></div>\r\n											<div class=\"light\"></div>\r\n											<div class=\"btm\"></div>\r\n										</div>\r\n									</div>\r\n									<div class=\"desc-container\">\r\n										<div class=\"how-to-desc text-center\">摇动手机, 打开宝箱赢取奖品</div>\r\n									</div>\r\n								</div>\r\n\r\n								<div class=\"info-area\">\r\n									<ul class=\"activity-info\">\r\n										<li>1.活动有效时间：\r\n											<div class=\"activity-info-content\">\r\n												<span data-name=\"start_time\">未填</span> 至 <span\r\n													data-name=\"end_time\">未填</span>\r\n											</div>\r\n										</li>\r\n\r\n										<li>2.活动说明：\r\n											<div class=\"activity-info-content\" data-name=\"notice\">无</div>\r\n										</li>\r\n\r\n									</ul>\r\n								</div>\r\n							</div>\r\n						</div>\r\n					</div>\r\n				</div>\r\n			</div>\r\n		</div>'), ('10', '水果机', '', 'games/e145b01457e0f0b5f77e18acee6acc05.png', '水果方格转盘抽奖', '9', '0', '');
COMMIT;

-- ----------------------------
--  Table structure for `ns_promotion_games`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_games`;
CREATE TABLE `ns_promotion_games` (
  `game_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '游戏id',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `name` varchar(255) NOT NULL DEFAULT '' COMMENT '游戏活动名称',
  `game_type` int(11) NOT NULL DEFAULT '1' COMMENT '游戏类型',
  `member_level` varchar(255) NOT NULL DEFAULT '0' COMMENT '参与的会员等级0表示全部参与',
  `level_name` varchar(255) NOT NULL DEFAULT '' COMMENT '参与活动会员名称',
  `points` int(11) NOT NULL DEFAULT '0' COMMENT '参与一次扣除积分',
  `start_time` int(11) NOT NULL DEFAULT '0' COMMENT '活动开始时间',
  `end_time` int(11) NOT NULL DEFAULT '0' COMMENT '活动结束时间',
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '活动状态 0未开始 1已开始 -1已结束 -2已关闭',
  `remark` varchar(1000) NOT NULL DEFAULT '' COMMENT '活动说明',
  `winning_rate` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '中奖率',
  `no_winning_des` varchar(255) NOT NULL DEFAULT '' COMMENT '未中奖说明',
  `activity_images` varchar(255) DEFAULT '' COMMENT '活动图片，只有上传了活动图，才会在首页显示',
  `winning_list_display` int(11) NOT NULL DEFAULT '0' COMMENT '中奖名单是否显示 0不显示 1显示',
  `join_type` int(11) NOT NULL DEFAULT '0' COMMENT '参加类型 0 次/活动全过程 1 次/每天',
  `join_frequency` int(11) NOT NULL DEFAULT '1' COMMENT '根据类型计算参加次数',
  `winning_type` int(11) NOT NULL DEFAULT '0' COMMENT '中奖类型 0 次/活动全过程 1 次/每天',
  `winning_max` int(11) NOT NULL DEFAULT '1' COMMENT '根据类型计算中奖最大限制',
  PRIMARY KEY (`game_id`),
  KEY `IDX_ns_promotion_games_end_time` (`end_time`),
  KEY `IDX_ns_promotion_games_start_time` (`start_time`),
  KEY `IDX_ns_promotion_games_status` (`status`),
  KEY `IDX_ns_promotion_games_type` (`game_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='营销游戏（概率游戏）';

-- ----------------------------
--  Table structure for `ns_promotion_games_winning_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_games_winning_records`;
CREATE TABLE `ns_promotion_games_winning_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uid` varchar(255) NOT NULL DEFAULT '0' COMMENT '会员id',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `is_use` int(11) NOT NULL DEFAULT '0' COMMENT '是否使用',
  `game_id` int(11) NOT NULL DEFAULT '0' COMMENT '活动id',
  `game_type` int(11) NOT NULL DEFAULT '1' COMMENT '游戏类型1.大转盘2.刮刮乐3.九宫格',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '奖励类型1.积分2.优惠券3.红包4.赠品...',
  `points` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '奖励积分',
  `hongbao` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '红包数（余额）',
  `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '奖励优惠券',
  `gift_id` int(11) NOT NULL DEFAULT '0' COMMENT '赠品id',
  `remark` varchar(1000) NOT NULL DEFAULT '' COMMENT '说明',
  `is_winning` smallint(1) NOT NULL DEFAULT '0' COMMENT '该次是否中奖 0未中奖  1中奖',
  `nick_name` varchar(50) NOT NULL DEFAULT '' COMMENT '会员昵称',
  `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间',
  `rule_id` int(11) NOT NULL DEFAULT '0' COMMENT '奖项id',
  `associated_gift_record_id` int(11) DEFAULT '0' COMMENT '关联赠品记录id',
  PRIMARY KEY (`id`),
  KEY `IDX_ns_promotion_games_winning_records_coupon_id` (`coupon_id`),
  KEY `IDX_ns_promotion_games_winning_records_game_id` (`game_id`),
  KEY `IDX_ns_promotion_games_winning_records_gift_id` (`gift_id`),
  KEY `IDX_ns_promotion_games_winning_records_type` (`type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='获奖记录';

-- ----------------------------
--  Table structure for `ns_promotion_gift`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_gift`;
CREATE TABLE `ns_promotion_gift` (
  `gift_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '赠品活动id ',
  `days` int(10) unsigned NOT NULL COMMENT '领取有效期(多少天)',
  `max_num` varchar(50) NOT NULL COMMENT '领取限制(次/人 (0表示不限领取次数))',
  `shop_id` varchar(100) NOT NULL COMMENT '店铺id',
  `gift_name` varchar(255) NOT NULL COMMENT '赠品活动名称',
  `start_time` int(11) DEFAULT '0' COMMENT '赠品有效期开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '赠品有效期结束时间',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`gift_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='赠品活动表';

-- ----------------------------
--  Table structure for `ns_promotion_gift_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_gift_goods`;
CREATE TABLE `ns_promotion_gift_goods` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id ',
  `gift_id` int(10) unsigned NOT NULL COMMENT '赠品id ',
  `goods_id` int(10) unsigned NOT NULL COMMENT '商品id',
  `goods_name` varchar(50) NOT NULL COMMENT '商品名称',
  `goods_picture` varchar(100) NOT NULL COMMENT '商品图片',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='商品赠品表';

-- ----------------------------
--  Table structure for `ns_promotion_gift_grant_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_gift_grant_records`;
CREATE TABLE `ns_promotion_gift_grant_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `uid` int(11) NOT NULL COMMENT '会员id',
  `nick_name` varchar(50) NOT NULL DEFAULT '' COMMENT '会员昵称',
  `gift_id` int(11) NOT NULL COMMENT '礼品id',
  `gift_name` varchar(255) NOT NULL DEFAULT '' COMMENT '礼品名称',
  `goods_name` varchar(255) NOT NULL DEFAULT '' COMMENT '商品名称',
  `goods_picture` int(11) NOT NULL DEFAULT '0' COMMENT '商品图id',
  `type` int(11) NOT NULL DEFAULT '1' COMMENT '领取类型1.满减2.游戏...',
  `type_name` varchar(50) NOT NULL DEFAULT '' COMMENT '类型名称',
  `relate_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联id（订单id）',
  `remark` varchar(1000) NOT NULL DEFAULT '' COMMENT '备注',
  `create_time` int(11) NOT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='赠品发放记录';

-- ----------------------------
--  Table structure for `ns_promotion_group_buy`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_group_buy`;
CREATE TABLE `ns_promotion_group_buy` (
  `group_id` int(11) NOT NULL AUTO_INCREMENT,
  `group_name` varchar(50) NOT NULL COMMENT '活动名称',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  `start_time` int(11) NOT NULL DEFAULT '0' COMMENT '活动开始时间',
  `end_time` int(11) NOT NULL DEFAULT '0' COMMENT '活动结束时间',
  `max_num` int(11) NOT NULL DEFAULT '0' COMMENT '最大购买量',
  `min_num` int(11) NOT NULL DEFAULT '0' COMMENT '最小购买量',
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '状态',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '活动信息',
  `create_time` int(11) NOT NULL DEFAULT '0',
  `modify_time` int(11) NOT NULL DEFAULT '0',
  PRIMARY KEY (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='团购活动表';

-- ----------------------------
--  Table structure for `ns_promotion_group_buy_ladder`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_group_buy_ladder`;
CREATE TABLE `ns_promotion_group_buy_ladder` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `group_id` int(11) NOT NULL DEFAULT '0' COMMENT '团购id',
  `num` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
  `group_price` decimal(19,2) NOT NULL DEFAULT '0.00' COMMENT '团购价格',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='团购阶梯价';

-- ----------------------------
--  Table structure for `ns_promotion_mansong`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_mansong`;
CREATE TABLE `ns_promotion_mansong` (
  `mansong_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '满送活动编号',
  `mansong_name` varchar(50) NOT NULL COMMENT '活动名称',
  `shop_id` int(10) unsigned NOT NULL COMMENT '店铺编号',
  `shop_name` varchar(50) NOT NULL COMMENT '店铺名称',
  `status` tinyint(1) unsigned NOT NULL COMMENT '活动状态(0-未发布/1-正常/3-关闭/4-结束)',
  `remark` varchar(200) NOT NULL COMMENT '备注',
  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1.普通优惠  2.多级优惠',
  `range_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1全部商品 0部分商品',
  `start_time` int(11) DEFAULT '0' COMMENT '活动开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '活动结束时间',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`mansong_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1638 COMMENT='满就送活动表';

-- ----------------------------
--  Table structure for `ns_promotion_mansong_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_mansong_goods`;
CREATE TABLE `ns_promotion_mansong_goods` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `mansong_id` int(11) NOT NULL COMMENT '满减送ID',
  `goods_id` int(11) NOT NULL COMMENT '商品ID',
  `goods_name` varchar(50) NOT NULL DEFAULT '' COMMENT '商品名称',
  `goods_picture` varchar(255) NOT NULL DEFAULT '' COMMENT '商品图片',
  `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '活动状态',
  `start_time` int(11) DEFAULT '0' COMMENT '开始时间',
  `end_time` int(11) DEFAULT '0' COMMENT '结束时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1489 COMMENT='满减送商品';

-- ----------------------------
--  Table structure for `ns_promotion_mansong_rule`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_mansong_rule`;
CREATE TABLE `ns_promotion_mansong_rule` (
  `rule_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则编号',
  `mansong_id` int(10) unsigned NOT NULL COMMENT '活动编号',
  `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '级别价格(满多少)',
  `discount` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '减现金优惠金额（减多少金额）',
  `free_shipping` tinyint(4) NOT NULL DEFAULT '0' COMMENT '免邮费',
  `give_point` int(11) NOT NULL DEFAULT '0' COMMENT '送积分数量（0表示不送）',
  `give_coupon` int(11) NOT NULL DEFAULT '0' COMMENT '送优惠券的id（0表示不送）',
  `gift_id` int(11) NOT NULL COMMENT '礼品(赠品)id',
  PRIMARY KEY (`rule_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1170 COMMENT='满就送活动规则表';

-- ----------------------------
--  Table structure for `ns_promotion_topic`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_topic`;
CREATE TABLE `ns_promotion_topic` (
  `topic_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL DEFAULT '1' COMMENT '店铺ID',
  `shop_name` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺名称',
  `topic_name` varchar(255) NOT NULL DEFAULT '' COMMENT '活动名称',
  `keyword` varchar(500) NOT NULL DEFAULT '' COMMENT '专题关键字',
  `desc` varchar(1000) NOT NULL DEFAULT '' COMMENT '专题描述',
  `picture_img` varchar(255) NOT NULL DEFAULT '' COMMENT '图像地址',
  `scroll_img` varchar(255) NOT NULL DEFAULT '' COMMENT '条幅图片',
  `background_img` varchar(255) NOT NULL DEFAULT '' COMMENT '背景图',
  `background_color` varchar(255) NOT NULL DEFAULT '' COMMENT '背景色',
  `introduce` text NOT NULL COMMENT '专题介绍',
  `wap_topic_template` varchar(255) NOT NULL DEFAULT '' COMMENT '手机自定义模板',
  `pc_topic_template` varchar(255) NOT NULL DEFAULT '' COMMENT '电脑端模板',
  `is_head` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示头部0.不显示1.显示',
  `is_foot` tinyint(4) NOT NULL DEFAULT '1' COMMENT '是否显示底部',
  `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '0-未发布/1-正常/3-关闭/4-结束',
  `start_time` int(11) NOT NULL DEFAULT '0' COMMENT '开始时间',
  `end_time` int(11) NOT NULL DEFAULT '0' COMMENT '结束时间',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`topic_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专题活动表';

-- ----------------------------
--  Table structure for `ns_promotion_topic_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_promotion_topic_goods`;
CREATE TABLE `ns_promotion_topic_goods` (
  `topic_goods_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `topic_id` int(11) NOT NULL COMMENT '对应专题活动',
  `goods_id` int(11) NOT NULL COMMENT '商品ID',
  `goods_name` varchar(255) NOT NULL DEFAULT '' COMMENT '商品名称',
  `goods_picture` int(11) NOT NULL COMMENT '商品图片',
  PRIMARY KEY (`topic_goods_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='专题活动商品表';

-- ----------------------------
--  Table structure for `ns_reward_rule`
-- ----------------------------
DROP TABLE IF EXISTS `ns_reward_rule`;
CREATE TABLE `ns_reward_rule` (
  `shop_id` int(10) unsigned NOT NULL,
  `sign_point` int(11) NOT NULL DEFAULT '0' COMMENT '签到送积分',
  `share_point` int(11) NOT NULL DEFAULT '0' COMMENT '分享送积分',
  `reg_member_self_point` int(11) NOT NULL DEFAULT '0' COMMENT '注册会员 自己获得的积分',
  `reg_member_one_point` int(11) NOT NULL DEFAULT '0' COMMENT '注册会员 上级获得的积分',
  `reg_member_two_point` int(11) NOT NULL DEFAULT '0' COMMENT '注册会员 上上级获得的积分',
  `reg_member_three_point` int(11) NOT NULL DEFAULT '0' COMMENT '注册会员 上上上级获得的积分',
  `reg_promoter_self_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为推广员 自己获得的积分',
  `reg_promoter_one_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为推广员 上级获得的积分',
  `reg_promoter_two_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为推广员 上上级获得的积分',
  `reg_promoter_three_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为推广员 上上上级获得的积分',
  `reg_partner_self_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为股东 自己获得的积分',
  `reg_partner_one_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为股东 上级获得的积分',
  `reg_partner_two_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为股东 上上级获得的积分',
  `reg_partner_three_point` int(11) NOT NULL DEFAULT '0' COMMENT '成为股东 上上上级获得的积分',
  `into_store_coupon` int(11) NOT NULL DEFAULT '0' COMMENT '进店领用优惠券  存入优惠券id(coupon_id)',
  `share_coupon` int(11) NOT NULL DEFAULT '0' COMMENT '分享领用优惠券  存入优惠券id(coupon_id)',
  `click_point` int(11) NOT NULL DEFAULT '0' COMMENT '点赞送积分',
  `comment_point` int(11) NOT NULL DEFAULT '0' COMMENT '评论送积分',
  `reg_coupon` int(11) NOT NULL DEFAULT '0' COMMENT '注册送优惠券id',
  `click_coupon` int(11) NOT NULL DEFAULT '0' COMMENT '点赞送优惠券id',
  `comment_coupon` int(11) NOT NULL DEFAULT '0' COMMENT '评论送优惠券id',
  `sign_coupon` int(11) NOT NULL DEFAULT '0' COMMENT '签到送优惠券id',
  PRIMARY KEY (`shop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='奖励规则表';

-- ----------------------------
--  Records of `ns_reward_rule`
-- ----------------------------
BEGIN;
INSERT INTO `ns_reward_rule` VALUES ('0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
COMMIT;

-- ----------------------------
--  Table structure for `ns_shop`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop`;
CREATE TABLE `ns_shop` (
  `shop_id` int(11) NOT NULL COMMENT '店铺索引id',
  `shop_name` varchar(50) NOT NULL COMMENT '店铺名称',
  `shop_type` int(11) NOT NULL COMMENT '店铺类型等级',
  `uid` int(11) NOT NULL COMMENT '会员id',
  `shop_group_id` int(11) NOT NULL COMMENT '店铺分类',
  `shop_company_name` varchar(50) DEFAULT NULL COMMENT '店铺公司名称',
  `province_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '店铺所在省份ID',
  `city_id` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '店铺所在市ID',
  `shop_address` varchar(100) NOT NULL DEFAULT '' COMMENT '详细地区',
  `shop_zip` varchar(10) NOT NULL DEFAULT '' COMMENT '邮政编码',
  `shop_state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '店铺状态，0关闭，1开启，2审核中',
  `shop_close_info` varchar(255) DEFAULT NULL COMMENT '店铺关闭原因',
  `shop_sort` int(11) NOT NULL DEFAULT '0' COMMENT '店铺排序',
  `shop_logo` varchar(255) DEFAULT NULL COMMENT '店铺logo',
  `shop_banner` varchar(255) DEFAULT NULL COMMENT '店铺横幅',
  `shop_avatar` varchar(150) DEFAULT NULL COMMENT '店铺头像',
  `shop_keywords` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺seo关键字',
  `shop_description` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺seo描述',
  `shop_qq` varchar(50) DEFAULT NULL COMMENT 'QQ',
  `shop_ww` varchar(50) DEFAULT NULL COMMENT '阿里旺旺',
  `shop_phone` varchar(20) DEFAULT NULL COMMENT '商家电话',
  `shop_domain` varchar(50) DEFAULT NULL COMMENT '店铺二级域名',
  `shop_domain_times` tinyint(1) unsigned DEFAULT '0' COMMENT '二级域名修改次数',
  `shop_recommend` tinyint(1) NOT NULL DEFAULT '0' COMMENT '推荐，0为否，1为是，默认为0',
  `shop_credit` int(10) NOT NULL DEFAULT '0' COMMENT '店铺信用',
  `shop_desccredit` float NOT NULL DEFAULT '0' COMMENT '描述相符度分数',
  `shop_servicecredit` float NOT NULL DEFAULT '0' COMMENT '服务态度分数',
  `shop_deliverycredit` float NOT NULL DEFAULT '0' COMMENT '发货速度分数',
  `shop_collect` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '店铺收藏数量',
  `shop_stamp` varchar(200) DEFAULT NULL COMMENT '店铺印章',
  `shop_printdesc` varchar(500) DEFAULT NULL COMMENT '打印订单页面下方说明文字',
  `shop_sales` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '店铺销售额（不计算退款）',
  `shop_account` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '店铺账户余额',
  `shop_cash` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '店铺可提现金额',
  `shop_workingtime` varchar(100) DEFAULT NULL COMMENT '工作时间',
  `live_store_name` varchar(255) DEFAULT NULL COMMENT '商铺名称',
  `live_store_address` varchar(255) DEFAULT NULL COMMENT '商家地址',
  `live_store_tel` varchar(255) DEFAULT NULL COMMENT '商铺电话',
  `live_store_bus` varchar(255) DEFAULT NULL COMMENT '公交线路',
  `shop_vrcode_prefix` char(3) DEFAULT NULL COMMENT '商家兑换码前缀',
  `store_qtian` tinyint(1) DEFAULT '0' COMMENT '7天退换',
  `shop_zhping` tinyint(1) DEFAULT '0' COMMENT '正品保障',
  `shop_erxiaoshi` tinyint(1) DEFAULT '0' COMMENT '两小时发货',
  `shop_tuihuo` tinyint(1) DEFAULT '0' COMMENT '退货承诺',
  `shop_shiyong` tinyint(1) DEFAULT '0' COMMENT '试用中心',
  `shop_shiti` tinyint(1) DEFAULT '0' COMMENT '实体验证',
  `shop_xiaoxie` tinyint(1) DEFAULT '0' COMMENT '消协保证',
  `shop_huodaofk` tinyint(1) DEFAULT '0' COMMENT '货到付款',
  `shop_free_time` varchar(10) DEFAULT NULL COMMENT '商家配送时间',
  `shop_region` varchar(50) DEFAULT NULL COMMENT '店铺默认配送区域',
  `recommend_uid` int(11) NOT NULL DEFAULT '0' COMMENT '推荐招商员用户id',
  `shop_qrcode` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺公众号',
  `shop_create_time` int(11) DEFAULT '0' COMMENT '店铺时间',
  `shop_end_time` int(11) DEFAULT '0' COMMENT '店铺关闭时间',
  PRIMARY KEY (`shop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='店铺数据表';

-- ----------------------------
--  Table structure for `ns_shop_ad`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_ad`;
CREATE TABLE `ns_shop_ad` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL,
  `ad_image` varchar(255) NOT NULL DEFAULT '' COMMENT '广告图片',
  `link_url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `type` int(1) NOT NULL DEFAULT '0' COMMENT '类型 0 -- pc端  1-- 手机端 ',
  `background` varchar(255) NOT NULL DEFAULT '#FFFFFF' COMMENT '背景色',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=5461 COMMENT='店铺广告设置';

-- ----------------------------
--  Table structure for `ns_shop_coin_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_coin_records`;
CREATE TABLE `ns_shop_coin_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL COMMENT '店铺ID',
  `num` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '购物币数量',
  `account_type` int(11) NOT NULL DEFAULT '1' COMMENT '增加或减少类型',
  `type_alis_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联ID',
  `is_display` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否显示',
  `text` varchar(255) NOT NULL DEFAULT '' COMMENT '简介',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='店铺购物币记录';

-- ----------------------------
--  Table structure for `ns_shop_express_address`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_express_address`;
CREATE TABLE `ns_shop_express_address` (
  `express_address_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '物流地址id',
  `shop_id` int(11) NOT NULL COMMENT '商铺id',
  `contact` varchar(100) NOT NULL DEFAULT '' COMMENT '联系人',
  `mobile` varchar(50) NOT NULL DEFAULT '' COMMENT '手机',
  `phone` varchar(50) NOT NULL DEFAULT '' COMMENT '电话',
  `company_name` varchar(100) NOT NULL DEFAULT '' COMMENT '公司名称',
  `province` smallint(6) NOT NULL DEFAULT '0' COMMENT '所在地省',
  `city` smallint(6) NOT NULL DEFAULT '0' COMMENT '所在地市',
  `district` smallint(6) NOT NULL DEFAULT '0' COMMENT '所在地区县',
  `zipcode` varchar(6) NOT NULL DEFAULT '' COMMENT '邮编',
  `address` varchar(100) NOT NULL DEFAULT '' COMMENT '详细地址',
  `is_consigner` tinyint(2) NOT NULL DEFAULT '0' COMMENT '发货地址标记',
  `is_receiver` tinyint(2) NOT NULL DEFAULT '0' COMMENT '收货地址标记',
  `create_date` int(11) DEFAULT '0' COMMENT '创建日期',
  `modify_date` int(11) DEFAULT '0' COMMENT '修改日期',
  PRIMARY KEY (`express_address_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1092 COMMENT='物流地址';

-- ----------------------------
--  Table structure for `ns_shop_group`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_group`;
CREATE TABLE `ns_shop_group` (
  `shop_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分组ID',
  `group_name` varchar(50) NOT NULL DEFAULT '' COMMENT '分组名称',
  `group_sort` int(11) NOT NULL DEFAULT '1' COMMENT '分组排序号',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`shop_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2730 COMMENT='店铺分组表';

-- ----------------------------
--  Table structure for `ns_shop_navigation`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_navigation`;
CREATE TABLE `ns_shop_navigation` (
  `nav_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL COMMENT '店铺ID',
  `nav_title` varchar(255) NOT NULL DEFAULT '' COMMENT '导航名称',
  `nav_url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  `type` int(1) NOT NULL DEFAULT '1' COMMENT '1pc端  2手机端',
  `sort` int(11) NOT NULL COMMENT '排序号',
  `align` int(11) NOT NULL DEFAULT '1' COMMENT '横向所在位置1 左  2  右',
  `nav_type` int(11) DEFAULT '1',
  `is_blank` int(11) DEFAULT '0',
  `template_name` varchar(255) DEFAULT '',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  `nav_icon` text NOT NULL COMMENT '导航图标',
  `is_show` smallint(1) NOT NULL DEFAULT '1' COMMENT '是否显示 1显示 0不显示',
  PRIMARY KEY (`nav_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1489 COMMENT='店铺导航管理';

-- ----------------------------
--  Records of `ns_shop_navigation`
-- ----------------------------
BEGIN;
INSERT INTO `ns_shop_navigation` VALUES ('1', '0', '领券中心', '/goods/couponlist', '1', '0', '0', '0', '0', '领券中心', '1517565408', '0', '', '1'), ('2', '0', '首页', '/index', '2', '0', '0', '0', '0', '首页', '1522756926', '0', 'upload/common/1522638497.png', '1'), ('3', '0', '商品分类', '/goods/goodsClassificationList', '2', '1', '0', '0', '0', '商品分类', '1522756926', '0', 'upload/common/1522639301.png', '1'), ('4', '0', '限时折扣', '/index/discount', '2', '2', '0', '0', '0', '限时折扣', '1522756926', '0', 'upload/common/1522639420.png', '1'), ('5', '0', '品牌专区', '/goods/brandlist', '2', '3', '0', '0', '0', '品牌专区', '1522756926', '0', 'upload/common/1522639938.png', '1'), ('6', '0', '标签专区', '/goods/promotionzone', '2', '4', '0', '0', '0', '标签专区', '1522756926', '0', 'upload/common/1522639973.png', '1'), ('7', '0', '会员中心', '/member/index', '2', '5', '0', '0', '0', '会员中心', '1522756926', '0', 'upload/common/1522640129.png', '1'), ('8', '0', '专题活动', '/goods/promotionTopic', '2', '7', '0', '0', '0', '专题活动', '1522756926', '0', 'upload/common/1522640297.png', '1'), ('9', '0', '团购专区', '/goods/groupBuyingArea', '2', '8', '0', '0', '0', '团购专区', '1522756926', '0', 'upload/common/1522640360.png', '1'), ('10', '0', '购物车', '/goods/cart', '2', '9', '0', '0', '0', '购物车', '1522756926', '0', 'upload/common/1522640412.png', '1');
COMMIT;

-- ----------------------------
--  Table structure for `ns_shop_navigation_template`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_navigation_template`;
CREATE TABLE `ns_shop_navigation_template` (
  `template_id` int(11) NOT NULL AUTO_INCREMENT,
  `template_name` varchar(50) NOT NULL DEFAULT '' COMMENT '模板名称',
  `template_url` varchar(255) NOT NULL DEFAULT '' COMMENT '访问路径',
  `is_use` int(11) NOT NULL DEFAULT '1' COMMENT '是否有效',
  `use_type` int(11) NOT NULL COMMENT '1 shop端 2wap端',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`template_id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=5461 COMMENT='导航 的 系统默认模板';

-- ----------------------------
--  Records of `ns_shop_navigation_template`
-- ----------------------------
BEGIN;
INSERT INTO `ns_shop_navigation_template` VALUES ('1', '首页', '/index', '1', '1', '1497706628'), ('2', '限时折扣', '/index/discount', '1', '1', '1497706628'), ('3', '品牌列表', '/goods/brandlist', '1', '1', '1497706628'), ('4', '积分中心', '/goods/integralcenter', '1', '1', '1500717235'), ('5', '标签专区', '/goods/promotionZone', '1', '1', '1500717235'), ('6', '领券中心', '/goods/couponlist', '1', '1', '1517565408'), ('7', '团购专区', 'goods/groupBuyingArea', '1', '1', '1522756914'), ('8', '专题活动', 'goods/promotionTopic', '1', '1', '1522756914'), ('9', '首页', '/index', '1', '2', '1522756925'), ('10', '商品分类', '/goods/goodsClassificationList', '1', '2', '1522756925'), ('11', '限时折扣', '/index/discount', '1', '2', '1522756925'), ('12', '品牌专区', '/goods/brandlist', '1', '2', '1522756925'), ('13', '标签专区', '/goods/promotionzone', '1', '2', '1522756925'), ('14', '会员中心', '/member/index', '1', '2', '1522756925'), ('15', '专题活动', '/goods/promotionTopic', '1', '2', '1522756925'), ('16', '团购专区', '/goods/groupBuyingArea', '1', '2', '1522756925'), ('17', '购物车', '/goods/cart', '1', '2', '1522756925');
COMMIT;

-- ----------------------------
--  Table structure for `ns_shop_order_account_records`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_order_account_records`;
CREATE TABLE `ns_shop_order_account_records` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL COMMENT '店铺ID',
  `order_id` int(11) NOT NULL COMMENT '订单ID',
  `order_no` varchar(255) NOT NULL DEFAULT '' COMMENT '订单编号',
  `order_goods_id` int(11) NOT NULL COMMENT '订单项ID',
  `goods_pay_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '订单项实际支付金额',
  `rate` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品平台佣金比率',
  `shop_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '店铺获取金额',
  `platform_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '平台获取金额',
  `is_refund` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否产生退款',
  `refund_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '实际退款金额',
  `shop_refund_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '店铺扣减余额',
  `platform_refund_money` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '平台扣减余额',
  `is_issue` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否已经结算',
  `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=655 COMMENT='店铺针对订单的金额分配';

-- ----------------------------
--  Table structure for `ns_shop_weixin_share`
-- ----------------------------
DROP TABLE IF EXISTS `ns_shop_weixin_share`;
CREATE TABLE `ns_shop_weixin_share` (
  `shop_id` int(11) NOT NULL,
  `goods_param_1` varchar(255) NOT NULL DEFAULT '' COMMENT '商品分享价格标示',
  `goods_param_2` varchar(255) NOT NULL DEFAULT '' COMMENT '商品分享内容',
  `shop_param_1` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺分享标题',
  `shop_param_2` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺分享主题',
  `shop_param_3` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺分享内容',
  `qrcode_param_1` varchar(255) NOT NULL DEFAULT '' COMMENT '二维码分享主题',
  `qrcode_param_2` varchar(255) NOT NULL DEFAULT '' COMMENT '二维码分享内容',
  PRIMARY KEY (`shop_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='店铺分享内容设置';

-- ----------------------------
--  Records of `ns_shop_weixin_share`
-- ----------------------------
BEGIN;
INSERT INTO `ns_shop_weixin_share` VALUES ('0', '', '', '', '', '', '', '');
COMMIT;

-- ----------------------------
--  Table structure for `ns_supplier`
-- ----------------------------
DROP TABLE IF EXISTS `ns_supplier`;
CREATE TABLE `ns_supplier` (
  `supplier_id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL DEFAULT '0',
  `supplier_name` varchar(50) NOT NULL DEFAULT '' COMMENT '供货商名称',
  `desc` varchar(1000) NOT NULL DEFAULT '' COMMENT '供货商描述',
  `linkman_tel` varchar(255) NOT NULL DEFAULT '' COMMENT '联系人电话',
  `linkman_name` varchar(50) NOT NULL DEFAULT '' COMMENT '联系人姓名',
  `linkman_address` varchar(255) NOT NULL DEFAULT '' COMMENT '联系人地址',
  PRIMARY KEY (`supplier_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='供货商表';

-- ----------------------------
--  Table structure for `ns_verification_person`
-- ----------------------------
DROP TABLE IF EXISTS `ns_verification_person`;
CREATE TABLE `ns_verification_person` (
  `v_id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`v_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='核销人员表';

-- ----------------------------
--  Table structure for `ns_virtual_goods`
-- ----------------------------
DROP TABLE IF EXISTS `ns_virtual_goods`;
CREATE TABLE `ns_virtual_goods` (
  `virtual_goods_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `virtual_code` varbinary(255) NOT NULL COMMENT '虚拟码',
  `virtual_goods_name` varchar(255) NOT NULL COMMENT '虚拟商品名称',
  `money` decimal(10,2) NOT NULL COMMENT '虚拟商品金额',
  `buyer_id` int(11) NOT NULL COMMENT '买家id',
  `buyer_nickname` varchar(255) NOT NULL COMMENT '买家名称',
  `order_goods_id` int(11) NOT NULL COMMENT '关联订单项id',
  `order_no` varchar(255) NOT NULL COMMENT '订单编号',
  `validity_period` int(11) NOT NULL COMMENT '有效期/天(0表示不限制)',
  `start_time` int(11) NOT NULL COMMENT '有效期开始时间',
  `end_time` int(11) NOT NULL COMMENT '有效期结束时间',
  `use_number` int(11) NOT NULL COMMENT '使用次数',
  `confine_use_number` int(11) NOT NULL COMMENT '限制使用次数',
  `use_status` tinyint(1) NOT NULL COMMENT '使用状态(-1:已过期,0:未使用,1:已使用)',
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `remark` varchar(255) DEFAULT '' COMMENT '备注',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  PRIMARY KEY (`virtual_goods_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='虚拟商品列表(用户下单支成功后存放)';

-- ----------------------------
--  Table structure for `ns_virtual_goods_group`
-- ----------------------------
DROP TABLE IF EXISTS `ns_virtual_goods_group`;
CREATE TABLE `ns_virtual_goods_group` (
  `virtual_goods_group_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '虚拟商品分组id',
  `virtual_goods_group_name` varchar(255) NOT NULL DEFAULT '' COMMENT '虚拟商品分组名称',
  `interfaces` varchar(1000) DEFAULT '' COMMENT '接口调用地址（JSON）',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`virtual_goods_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='虚拟商品分组表';

-- ----------------------------
--  Table structure for `ns_virtual_goods_type`
-- ----------------------------
DROP TABLE IF EXISTS `ns_virtual_goods_type`;
CREATE TABLE `ns_virtual_goods_type` (
  `virtual_goods_type_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '虚拟商品类型id',
  `virtual_goods_group_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联虚拟商品分组id',
  `validity_period` int(11) NOT NULL DEFAULT '0' COMMENT '有效期/天(0表示不限制)',
  `confine_use_number` int(11) NOT NULL DEFAULT '0' COMMENT '限制使用次数',
  `shop_id` int(11) NOT NULL COMMENT '店铺id',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `relate_goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联商品id',
  `value_info` varchar(1000) NOT NULL DEFAULT '' COMMENT '值详情',
  PRIMARY KEY (`virtual_goods_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
--  Table structure for `ns_virtual_goods_verification`
-- ----------------------------
DROP TABLE IF EXISTS `ns_virtual_goods_verification`;
CREATE TABLE `ns_virtual_goods_verification` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '核销人员id',
  `virtual_goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户虚拟商品id',
  `action` varchar(255) NOT NULL DEFAULT '' COMMENT '动作内容',
  `status` int(11) NOT NULL DEFAULT '0' COMMENT '用户虚拟商品使用状态',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `num` int(11) NOT NULL DEFAULT '0' COMMENT '核销次数',
  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品id',
  `verification_name` varchar(50) NOT NULL DEFAULT '' COMMENT '核销员',
  `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '虚拟商品所有者',
  `goods_name` varchar(50) NOT NULL DEFAULT '' COMMENT '虚拟商品名称',
  `buyer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品所有人',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='虚拟商品核销记录表';

-- ----------------------------
--  Table structure for `sys_addons`
-- ----------------------------
DROP TABLE IF EXISTS `sys_addons`;
CREATE TABLE `sys_addons` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `name` varchar(40) NOT NULL COMMENT '插件名或标识',
  `title` varchar(20) NOT NULL DEFAULT '' COMMENT '中文名',
  `description` text COMMENT '插件描述',
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  `config` text COMMENT '配置',
  `author` varchar(40) DEFAULT '' COMMENT '作者',
  `version` varchar(20) DEFAULT '' COMMENT '版本号',
  `has_adminlist` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否有后台列表',
  `has_addonslist` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否有插件列表',
  `content` text NOT NULL COMMENT '详情',
  `config_hook` varchar(255) NOT NULL DEFAULT '' COMMENT '自定义配置文件钩子',
  `create_time` int(11) DEFAULT '0' COMMENT '安装时间',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='插件表';

-- ----------------------------
--  Table structure for `sys_album_class`
-- ----------------------------
DROP TABLE IF EXISTS `sys_album_class`;
CREATE TABLE `sys_album_class` (
  `album_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '相册id',
  `shop_id` int(10) NOT NULL DEFAULT '1' COMMENT '店铺id',
  `pid` int(11) NOT NULL DEFAULT '0' COMMENT '上级相册ID',
  `album_name` varchar(100) NOT NULL COMMENT '相册名称',
  `album_cover` varchar(255) NOT NULL DEFAULT '' COMMENT '相册封面',
  `is_default` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否为默认相册,1代表默认',
  `sort` int(11) DEFAULT NULL,
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`album_id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='相册表';

-- ----------------------------
--  Records of `sys_album_class`
-- ----------------------------
BEGIN;
INSERT INTO `sys_album_class` VALUES ('30', '0', '0', '默认相册', '0', '1', '1', '1497064831');
COMMIT;

-- ----------------------------
--  Table structure for `sys_album_picture`
-- ----------------------------
DROP TABLE IF EXISTS `sys_album_picture`;
CREATE TABLE `sys_album_picture` (
  `pic_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '相册图片表id',
  `shop_id` int(10) unsigned DEFAULT '1' COMMENT '所属实例id',
  `album_id` int(10) unsigned NOT NULL COMMENT '相册id',
  `is_wide` int(11) NOT NULL DEFAULT '0' COMMENT '是否宽屏',
  `pic_name` varchar(100) NOT NULL COMMENT '图片名称',
  `pic_tag` varchar(255) NOT NULL DEFAULT '' COMMENT '图片标签',
  `pic_cover` varchar(255) NOT NULL COMMENT '原图图片路径',
  `pic_size` varchar(255) NOT NULL COMMENT '原图大小',
  `pic_spec` varchar(100) NOT NULL COMMENT '原图规格',
  `pic_cover_big` varchar(255) NOT NULL DEFAULT '' COMMENT '大图路径',
  `pic_size_big` varchar(255) NOT NULL DEFAULT '0' COMMENT '大图大小',
  `pic_spec_big` varchar(100) NOT NULL DEFAULT '' COMMENT '大图规格',
  `pic_cover_mid` varchar(255) NOT NULL DEFAULT '' COMMENT '中图路径',
  `pic_size_mid` varchar(255) NOT NULL DEFAULT '0' COMMENT '中图大小',
  `pic_spec_mid` varchar(100) NOT NULL DEFAULT '' COMMENT '中图规格',
  `pic_cover_small` varchar(255) NOT NULL DEFAULT '' COMMENT '小图路径',
  `pic_size_small` varchar(255) NOT NULL DEFAULT '0' COMMENT '小图大小',
  `pic_spec_small` varchar(255) NOT NULL DEFAULT '' COMMENT '小图规格',
  `pic_cover_micro` varchar(255) NOT NULL DEFAULT '' COMMENT '微图路径',
  `pic_size_micro` varchar(255) NOT NULL DEFAULT '0' COMMENT '微图大小',
  `pic_spec_micro` varchar(255) NOT NULL DEFAULT '' COMMENT '微图规格',
  `upload_time` int(11) DEFAULT '0' COMMENT '图片上传时间',
  `upload_type` int(11) DEFAULT '1' COMMENT '图片外链',
  `domain` varchar(255) DEFAULT '' COMMENT '图片外链',
  `bucket` varchar(255) DEFAULT '' COMMENT '存储空间名称',
  PRIMARY KEY (`pic_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=204 COMMENT='相册图片表';

-- ----------------------------
--  Records of `sys_album_picture`
-- ----------------------------
BEGIN;
INSERT INTO `sys_album_picture` VALUES ('1', '0', '30', '0', 'favorite', 'favorite', 'upload/goods/20190202/fbdd4d343b11fe4b52f9168c1a42a2b9.png', '144,144', '144,144', 'upload/goods/20190202/9cf4b339fd76241ec7b134a21989513c1.png', '700,700', '700,700', 'upload/goods/20190202/9cf4b339fd76241ec7b134a21989513c2.png', '360,360', '360,360', 'upload/goods/20190202/9cf4b339fd76241ec7b134a21989513c3.png', '240,240', '240,240', 'upload/goods/20190202/9cf4b339fd76241ec7b134a21989513c4.png', '60,60', '60,60', '1549117614', '1', '', '');
COMMIT;

-- ----------------------------
--  Table structure for `sys_area`
-- ----------------------------
DROP TABLE IF EXISTS `sys_area`;
CREATE TABLE `sys_area` (
  `area_id` int(11) NOT NULL AUTO_INCREMENT,
  `area_name` varchar(50) NOT NULL DEFAULT '',
  `sort` int(11) DEFAULT NULL,
  PRIMARY KEY (`area_id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2048 COMMENT='全部区域表';

-- ----------------------------
--  Records of `sys_area`
-- ----------------------------
BEGIN;
INSERT INTO `sys_area` VALUES ('1', '华东', '0'), ('2', '华北', '0'), ('3', '华南', '0'), ('4', '华中', '0'), ('5', '东北', '0'), ('6', '西北', '0'), ('7', '西南', '0'), ('8', '港澳台', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_city`
-- ----------------------------
DROP TABLE IF EXISTS `sys_city`;
CREATE TABLE `sys_city` (
  `city_id` int(11) NOT NULL AUTO_INCREMENT,
  `province_id` int(11) NOT NULL DEFAULT '0',
  `city_name` varchar(255) NOT NULL DEFAULT '',
  `zipcode` varchar(6) NOT NULL DEFAULT '',
  `sort` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`city_id`),
  KEY `IDX_g_city_CityName` (`city_name`)
) ENGINE=InnoDB AUTO_INCREMENT=346 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=135;

-- ----------------------------
--  Records of `sys_city`
-- ----------------------------
BEGIN;
INSERT INTO `sys_city` VALUES ('1', '1', '北京市', '100000', '1'), ('2', '2', '天津市', '100000', '0'), ('3', '3', '石家庄市', '050000', '0'), ('4', '3', '唐山市', '063000', '0'), ('5', '3', '秦皇岛市', '066000', '0'), ('6', '3', '邯郸市', '056000', '0'), ('7', '3', '邢台市', '054000', '0'), ('8', '3', '保定市', '071000', '0'), ('9', '3', '张家口市', '075000', '0'), ('10', '3', '承德市', '067000', '0'), ('11', '3', '沧州市', '061000', '0'), ('12', '3', '廊坊市', '065000', '0'), ('13', '3', '衡水市', '053000', '0'), ('14', '4', '太原市', '030000', '0'), ('15', '4', '大同市', '037000', '0'), ('16', '4', '阳泉市', '045000', '0'), ('17', '4', '长治市', '046000', '0'), ('18', '4', '晋城市', '048000', '0'), ('19', '4', '朔州市', '036000', '0'), ('20', '4', '晋中市', '030600', '0'), ('21', '4', '运城市', '044000', '0'), ('22', '4', '忻州市', '034000', '0'), ('23', '4', '临汾市', '041000', '0'), ('24', '4', '吕梁市', '030500', '0'), ('25', '5', '呼和浩特市', '010000', '0'), ('26', '5', '包头市', '014000', '0'), ('27', '5', '乌海市', '016000', '0'), ('28', '5', '赤峰市', '024000', '0'), ('29', '5', '通辽市', '028000', '0'), ('30', '5', '鄂尔多斯市', '010300', '0'), ('31', '5', '呼伦贝尔市', '021000', '0'), ('32', '5', '巴彦淖尔市', '014400', '0'), ('33', '5', '乌兰察布市', '011800', '0'), ('34', '5', '兴安盟', '137500', '0'), ('35', '5', '锡林郭勒盟', '011100', '0'), ('36', '5', '阿拉善盟', '016000', '0'), ('37', '6', '沈阳市', '110000', '0'), ('38', '6', '大连市', '116000', '0'), ('39', '6', '鞍山市', '114000', '0'), ('40', '6', '抚顺市', '113000', '0'), ('41', '6', '本溪市', '117000', '0'), ('42', '6', '丹东市', '118000', '0'), ('43', '6', '锦州市', '121000', '0'), ('44', '6', '营口市', '115000', '0'), ('45', '6', '阜新市', '123000', '0'), ('46', '6', '辽阳市', '111000', '0'), ('47', '6', '盘锦市', '124000', '0'), ('48', '6', '铁岭市', '112000', '0'), ('49', '6', '朝阳市', '122000', '0'), ('50', '6', '葫芦岛市', '125000', '0'), ('51', '7', '长春市', '130000', '0'), ('52', '7', '吉林市', '132000', '0'), ('53', '7', '四平市', '136000', '0'), ('54', '7', '辽源市', '136200', '0'), ('55', '7', '通化市', '134000', '0'), ('56', '7', '白山市', '134300', '0'), ('57', '7', '松原市', '131100', '0'), ('58', '7', '白城市', '137000', '0'), ('59', '7', '延边朝鲜族自治州', '133000', '0'), ('60', '8', '哈尔滨市', '150000', '0'), ('61', '8', '齐齐哈尔市', '161000', '0'), ('62', '8', '鸡西市', '158100', '0'), ('63', '8', '鹤岗市', '154100', '0'), ('64', '8', '双鸭山市', '155100', '0'), ('65', '8', '大庆市', '163000', '0'), ('66', '8', '伊春市', '152300', '0'), ('67', '8', '佳木斯市', '154000', '0'), ('68', '8', '七台河市', '154600', '0'), ('69', '8', '牡丹江市', '157000', '0'), ('70', '8', '黑河市', '164300', '0'), ('71', '8', '绥化市', '152000', '0'), ('72', '8', '大兴安岭地区', '165000', '0'), ('73', '9', '上海市', '200000', '0'), ('74', '10', '南京市', '210000', '0'), ('75', '10', '无锡市', '214000', '0'), ('76', '10', '徐州市', '221000', '0'), ('77', '10', '常州市', '213000', '0'), ('78', '10', '苏州市', '215000', '0'), ('79', '10', '南通市', '226000', '0'), ('80', '10', '连云港市', '222000', '0'), ('81', '10', '淮安市', '223200', '0'), ('82', '10', '盐城市', '224000', '0'), ('83', '10', '扬州市', '225000', '0'), ('84', '10', '镇江市', '212000', '0'), ('85', '10', '泰州市', '225300', '0'), ('86', '10', '宿迁市', '223800', '0'), ('87', '11', '杭州市', '310000', '0'), ('88', '11', '宁波市', '315000', '0'), ('89', '11', '温州市', '325000', '0'), ('90', '11', '嘉兴市', '314000', '0'), ('91', '11', '湖州市', '313000', '0'), ('92', '11', '绍兴市', '312000', '0'), ('93', '11', '金华市', '321000', '0'), ('94', '11', '衢州市', '324000', '0'), ('95', '11', '舟山市', '316000', '0'), ('96', '11', '台州市', '318000', '0'), ('97', '11', '丽水市', '323000', '0'), ('98', '12', '合肥市', '230000', '0'), ('99', '12', '芜湖市', '241000', '0'), ('100', '12', '蚌埠市', '233000', '0'), ('101', '12', '淮南市', '232000', '0'), ('102', '12', '马鞍山市', '243000', '0'), ('103', '12', '淮北市', '235000', '0'), ('104', '12', '铜陵市', '244000', '0'), ('105', '12', '安庆市', '246000', '0'), ('106', '12', '黄山市', '242700', '0'), ('107', '12', '滁州市', '239000', '0'), ('108', '12', '阜阳市', '236100', '0'), ('109', '12', '宿州市', '234100', '0'), ('110', '12', '巢湖市', '238000', '0'), ('111', '12', '六安市', '237000', '0'), ('112', '12', '亳州市', '236800', '0'), ('113', '12', '池州市', '247100', '0'), ('114', '12', '宣城市', '366000', '0'), ('115', '13', '福州市', '350000', '0'), ('116', '13', '厦门市', '361000', '0'), ('117', '13', '莆田市', '351100', '0'), ('118', '13', '三明市', '365000', '0'), ('119', '13', '泉州市', '362000', '0'), ('120', '13', '漳州市', '363000', '0'), ('121', '13', '南平市', '353000', '0'), ('122', '13', '龙岩市', '364000', '0'), ('123', '13', '宁德市', '352100', '0'), ('124', '14', '南昌市', '330000', '0'), ('125', '14', '景德镇市', '333000', '0'), ('126', '14', '萍乡市', '337000', '0'), ('127', '14', '九江市', '332000', '0'), ('128', '14', '新余市', '338000', '0'), ('129', '14', '鹰潭市', '335000', '0'), ('130', '14', '赣州市', '341000', '0'), ('131', '14', '吉安市', '343000', '0'), ('132', '14', '宜春市', '336000', '0'), ('133', '14', '抚州市', '332900', '0'), ('134', '14', '上饶市', '334000', '0'), ('135', '15', '济南市', '250000', '0'), ('136', '15', '青岛市', '266000', '0'), ('137', '15', '淄博市', '255000', '0'), ('138', '15', '枣庄市', '277100', '0'), ('139', '15', '东营市', '257000', '0'), ('140', '15', '烟台市', '264000', '0'), ('141', '15', '潍坊市', '261000', '0'), ('142', '15', '济宁市', '272100', '0'), ('143', '15', '泰安市', '271000', '0'), ('144', '15', '威海市', '265700', '0'), ('145', '15', '日照市', '276800', '0'), ('146', '15', '莱芜市', '271100', '0'), ('147', '15', '临沂市', '276000', '0'), ('148', '15', '德州市', '253000', '0'), ('149', '15', '聊城市', '252000', '0'), ('150', '15', '滨州市', '256600', '0'), ('151', '15', '荷泽市', '255000', '0'), ('152', '16', '郑州市', '450000', '0'), ('153', '16', '开封市', '475000', '0'), ('154', '16', '洛阳市', '471000', '0'), ('155', '16', '平顶山市', '467000', '0'), ('156', '16', '安阳市', '454900', '0'), ('157', '16', '鹤壁市', '456600', '0'), ('158', '16', '新乡市', '453000', '0'), ('159', '16', '焦作市', '454100', '0'), ('160', '16', '濮阳市', '457000', '0'), ('161', '16', '许昌市', '461000', '0'), ('162', '16', '漯河市', '462000', '0'), ('163', '16', '三门峡市', '472000', '0'), ('164', '16', '南阳市', '473000', '0'), ('165', '16', '商丘市', '476000', '0'), ('166', '16', '信阳市', '464000', '0'), ('167', '16', '周口市', '466000', '0'), ('168', '16', '驻马店市', '463000', '0'), ('169', '17', '武汉市', '430000', '0'), ('170', '17', '黄石市', '435000', '0'), ('171', '17', '十堰市', '442000', '0'), ('172', '17', '宜昌市', '443000', '0'), ('173', '17', '襄樊市', '441000', '0'), ('174', '17', '鄂州市', '436000', '0'), ('175', '17', '荆门市', '448000', '0'), ('176', '17', '孝感市', '432100', '0'), ('177', '17', '荆州市', '434000', '0'), ('178', '17', '黄冈市', '438000', '0'), ('179', '17', '咸宁市', '437000', '0'), ('180', '17', '随州市', '441300', '0'), ('181', '17', '恩施土家族苗族自治州', '445000', '0'), ('182', '17', '神农架', '442400', '0'), ('183', '18', '长沙市', '410000', '0'), ('184', '18', '株洲市', '412000', '0'), ('185', '18', '湘潭市', '411100', '0'), ('186', '18', '衡阳市', '421000', '0'), ('187', '18', '邵阳市', '422000', '0'), ('188', '18', '岳阳市', '414000', '0'), ('189', '18', '常德市', '415000', '0'), ('190', '18', '张家界市', '427000', '0'), ('191', '18', '益阳市', '413000', '0'), ('192', '18', '郴州市', '423000', '0'), ('193', '18', '永州市', '425000', '0'), ('194', '18', '怀化市', '418000', '0'), ('195', '18', '娄底市', '417000', '0'), ('196', '18', '湘西土家族苗族自治州', '416000', '0'), ('197', '19', '广州市', '510000', '0'), ('198', '19', '韶关市', '521000', '0'), ('199', '19', '深圳市', '518000', '0'), ('200', '19', '珠海市', '519000', '0'), ('201', '19', '汕头市', '515000', '0'), ('202', '19', '佛山市', '528000', '0'), ('203', '19', '江门市', '529000', '0'), ('204', '19', '湛江市', '524000', '0'), ('205', '19', '茂名市', '525000', '0'), ('206', '19', '肇庆市', '526000', '0'), ('207', '19', '惠州市', '516000', '0'), ('208', '19', '梅州市', '514000', '0'), ('209', '19', '汕尾市', '516600', '1'), ('210', '19', '河源市', '517000', '0'), ('211', '19', '阳江市', '529500', '0'), ('212', '19', '清远市', '511500', '0'), ('213', '19', '东莞市', '511700', '0'), ('214', '19', '中山市', '528400', '0'), ('215', '19', '潮州市', '515600', '0'), ('216', '19', '揭阳市', '522000', '0'), ('217', '19', '云浮市', '527300', '0'), ('218', '20', '南宁市', '530000', '0'), ('219', '20', '柳州市', '545000', '0'), ('220', '20', '桂林市', '541000', '0'), ('221', '20', '梧州市', '543000', '0'), ('222', '20', '北海市', '536000', '0'), ('223', '20', '防城港市', '538000', '0'), ('224', '20', '钦州市', '535000', '0'), ('225', '20', '贵港市', '537100', '0'), ('226', '20', '玉林市', '537000', '0'), ('227', '20', '百色市', '533000', '0'), ('228', '20', '贺州市', '542800', '0'), ('229', '20', '河池市', '547000', '0'), ('230', '20', '来宾市', '546100', '0'), ('231', '20', '崇左市', '532200', '0'), ('232', '21', '海口市', '570000', '0'), ('233', '21', '三亚市', '572000', '0'), ('234', '22', '重庆市', '400000', '0'), ('235', '23', '成都市', '610000', '0'), ('236', '23', '自贡市', '643000', '0'), ('237', '23', '攀枝花市', '617000', '0'), ('238', '23', '泸州市', '646100', '0'), ('239', '23', '德阳市', '618000', '0'), ('240', '23', '绵阳市', '621000', '0'), ('241', '23', '广元市', '628000', '0'), ('242', '23', '遂宁市', '629000', '0'), ('243', '23', '内江市', '641000', '0'), ('244', '23', '乐山市', '614000', '0'), ('245', '23', '南充市', '637000', '0'), ('246', '23', '眉山市', '612100', '0'), ('247', '23', '宜宾市', '644000', '0'), ('248', '23', '广安市', '638000', '0'), ('249', '23', '达州市', '635000', '0'), ('250', '23', '雅安市', '625000', '0'), ('251', '23', '巴中市', '635500', '0'), ('252', '23', '资阳市', '641300', '0'), ('253', '23', '阿坝藏族羌族自治州', '624600', '0'), ('254', '23', '甘孜藏族自治州', '626000', '0'), ('255', '23', '凉山彝族自治州', '615000', '0'), ('256', '24', '贵阳市', '55000', '0'), ('257', '24', '六盘水市', '553000', '0'), ('258', '24', '遵义市', '563000', '0'), ('259', '24', '安顺市', '561000', '0'), ('260', '24', '铜仁地区', '554300', '0'), ('261', '24', '黔西南布依族苗族自治州', '551500', '0'), ('262', '24', '毕节地区', '551700', '0'), ('263', '24', '黔东南苗族侗族自治州', '551500', '0'), ('264', '24', '黔南布依族苗族自治州', '550100', '0'), ('265', '25', '昆明市', '650000', '0'), ('266', '25', '曲靖市', '655000', '0'), ('267', '25', '玉溪市', '653100', '0'), ('268', '25', '保山市', '678000', '0'), ('269', '25', '昭通市', '657000', '0'), ('270', '25', '丽江市', '674100', '0'), ('271', '25', '思茅市', '665000', '0'), ('272', '25', '临沧市', '677000', '0'), ('273', '25', '楚雄彝族自治州', '675000', '0'), ('274', '25', '红河哈尼族彝族自治州', '654400', '0'), ('275', '25', '文山壮族苗族自治州', '663000', '0'), ('276', '25', '西双版纳傣族自治州', '666200', '0'), ('277', '25', '大理白族自治州', '671000', '0'), ('278', '25', '德宏傣族景颇族自治州', '678400', '0'), ('279', '25', '怒江傈僳族自治州', '671400', '0'), ('280', '25', '迪庆藏族自治州', '674400', '0'), ('281', '26', '拉萨市', '850000', '0'), ('282', '26', '昌都地区', '854000', '0'), ('283', '26', '山南地区', '856000', '0'), ('284', '26', '日喀则地区', '857000', '0'), ('285', '26', '那曲地区', '852000', '0'), ('286', '26', '阿里地区', '859100', '0'), ('287', '26', '林芝地区', '860100', '0'), ('288', '27', '西安市', '710000', '0'), ('289', '27', '铜川市', '727000', '0'), ('290', '27', '宝鸡市', '721000', '0'), ('291', '27', '咸阳市', '712000', '0'), ('292', '27', '渭南市', '714000', '0'), ('293', '27', '延安市', '716000', '0'), ('294', '27', '汉中市', '723000', '0'), ('295', '27', '榆林市', '719000', '0'), ('296', '27', '安康市', '725000', '0'), ('297', '27', '商洛市', '711500', '0'), ('298', '28', '兰州市', '730000', '0'), ('299', '28', '嘉峪关市', '735100', '0'), ('300', '28', '金昌市', '737100', '0'), ('301', '28', '白银市', '730900', '0'), ('302', '28', '天水市', '741000', '0'), ('303', '28', '武威市', '733000', '0'), ('304', '28', '张掖市', '734000', '0'), ('305', '28', '平凉市', '744000', '0'), ('306', '28', '酒泉市', '735000', '0'), ('307', '28', '庆阳市', '744500', '0'), ('308', '28', '定西市', '743000', '0'), ('309', '28', '陇南市', '742100', '0'), ('310', '28', '临夏回族自治州', '731100', '0'), ('311', '28', '甘南藏族自治州', '747000', '0'), ('312', '29', '西宁市', '810000', '0'), ('313', '29', '海东地区', '810600', '0'), ('314', '29', '海北藏族自治州', '810300', '0'), ('315', '29', '黄南藏族自治州', '811300', '0'), ('316', '29', '海南藏族自治州', '813000', '0'), ('317', '29', '果洛藏族自治州', '814000', '0'), ('318', '29', '玉树藏族自治州', '815000', '0'), ('319', '29', '海西蒙古族藏族自治州', '817000', '0'), ('320', '30', '银川市', '750000', '0'), ('321', '30', '石嘴山市', '753000', '0'), ('322', '30', '吴忠市', '751100', '0'), ('323', '30', '固原市', '756000', '0'), ('324', '30', '中卫市', '751700', '0'), ('325', '31', '乌鲁木齐市', '830000', '0'), ('326', '31', '克拉玛依市', '834000', '0'), ('327', '31', '吐鲁番地区', '838000', '0'), ('328', '31', '哈密地区', '839000', '0'), ('329', '31', '昌吉回族自治州', '831100', '0'), ('330', '31', '博尔塔拉蒙古自治州', '833400', '0'), ('331', '31', '巴音郭楞蒙古自治州', '841000', '0'), ('332', '31', '阿克苏地区', '843000', '0'), ('333', '31', '克孜勒苏柯尔克孜自治州', '835600', '0'), ('334', '31', '喀什地区', '844000', '0'), ('335', '31', '和田地区', '848000', '0'), ('336', '31', '伊犁哈萨克自治州', '833200', '0'), ('337', '31', '塔城地区', '834700', '0'), ('338', '31', '阿勒泰地区', '836500', '0'), ('339', '31', '石河子市', '832000', '0'), ('340', '31', '阿拉尔市', '843300', '0'), ('341', '31', '图木舒克市', '843900', '0'), ('342', '31', '五家渠市', '831300', '0'), ('343', '32', '香港特别行政区', '000000', '0'), ('344', '33', '澳门特别行政区', '000000', '0'), ('345', '34', '台湾省', '000000', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_config`
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `instance_id` int(11) NOT NULL DEFAULT '1' COMMENT '实例ID',
  `key` varchar(255) NOT NULL DEFAULT '' COMMENT '配置项WCHAT,QQ,WPAY,ALIPAY...',
  `value` varchar(1000) NOT NULL DEFAULT '' COMMENT '配置值json',
  `desc` varchar(1000) NOT NULL DEFAULT '' COMMENT '描述',
  `is_use` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否启用 1启用 0不启用',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=963 COMMENT='第三方配置表';

-- ----------------------------
--  Records of `sys_config`
-- ----------------------------
BEGIN;
INSERT INTO `sys_config` VALUES ('12', '0', 'USERNOTICE', '', '', '1', '1487830081', '1497102938'), ('13', '0', 'HOTKEY', '', '', '1', '1487831749', '1497105229'), ('14', '0', 'DEFAULTKEY', '', '', '1', '1487831788', '1497105235'), ('17', '0', 'QQLOGIN', '{\"APP_KEY\":\"\",\"APP_SECRET\":\"\",\"AUTHORIZE\":\"http:\\/\\/b2c1.01.niushop.com.cn\",\"CALLBACK\":\"http:\\/\\/b2c1.01.niushop.com.cn\\/wap\\/login\\/callback\"}', 'qq', '0', '1488350925', '1497105447'), ('18', '0', 'WCHAT', '{\"APP_KEY\":\"\",\"APP_SECRET\":\"\",\"AUTHORIZE\":\"http:\\/\\/b2c1.01.niushop.com.cn\",\"CALLBACK\":\"http:\\/\\/b2c1.01.niushop.com.cn\\/wap\\/Login\\/callback\"}', '微信', '0', '1488350947', '1497105440'), ('21', '0', 'ALIPAY', '{\"ali_partnerid\":\"\",\"ali_seller\":\"\",\"ali_key\":\"\"}', '', '0', '1488442697', '1497105409'), ('22', '0', 'EMAILMESSAGE', '{\"email_host\":\"smtp.163.com\",\"email_port\":\"465\",\"email_addr\":\"\",\"email_id\":\"\",\"email_pass\":\"\"}', '', '0', '1488524450', '1498907460'), ('27', '0', 'WXOPENPLATFORM', '', '', '1', '1490845979', '1496903672'), ('28', '0', 'LOGINVERIFYCODE', '', '', '1', '1491014899', '1498736286'), ('31', '0', 'COIN_CONFIG', '', '购物币现金转化关系', '1', '1492396593', '1496903672'), ('38', '0', 'ORDER_BUY_CLOSE_TIME', '60', '订单自动关闭时间', '1', '1499391774', '1550476202'), ('39', '0', 'ORDER_DELIVERY_COMPLETE_TIME', '7', '收货后多长时间自动完成', '1', '1499391779', '1550476202'), ('40', '0', 'ORDER_AUTO_DELIVERY', '14', '订单多长时间自动完成', '1', '1499391781', '1550476202'), ('41', '0', 'ORDER_BALANCE_PAY', '1', '是否开启余额支付', '1', '1499391784', '1550476202'), ('42', '0', 'ORDER_INVOICE_TAX', '0', '发票税率', '1', '1499391786', '1550476202'), ('43', '0', 'ORDER_INVOICE_CONTENT', '', '发票内容', '1', '1499391789', '1550476202'), ('44', '0', 'ORDER_SHOW_BUY_RECORD', '0', '是否显示购买记录', '1', '1499391791', '1550476202'), ('45', '0', 'SEO_TITLE', '', '标题附加字', '1', '1496751194', '1497090304'), ('46', '0', 'SEO_META', '', '商城关键词', '1', '1496751194', '1497090304'), ('47', '0', 'SEO_DESC', '', '关键词描述', '1', '1496751194', '1497090304'), ('48', '0', 'SEO_OTHER', '', '其他页头信息', '1', '1496751194', '1497090304'), ('107', '0', 'ORDER_DELIVERY_PAY', '0', '是否开启货到付款', '1', '1496825466', '1550476202'), ('109', '0', 'REGISTER_INTEGRAL', '1', '注册送积分', '1', '1496981877', '1550476962'), ('111', '0', 'SHARE_INTEGRAL', '0', '分享送积分', '1', '1496981877', '1550476962'), ('112', '0', 'SIGN_INTEGRAL', '0', '签到送积分', '1', '1496983370', '1550476962'), ('116', '0', 'LOGINVERIFYCODE', '', '', '1', '1497085371', '1498736286'), ('122', '0', 'HOTKEY', '', '', '1', '1497087566', '1497105229'), ('123', '0', 'DEFAULTKEY', '', '', '1', '1497087582', '1497105235'), ('125', '0', 'WPAY', '{\"appid\":\"\",\"appkey\":\"\",\"mch_id\":\"\",\"mch_key\":\"\"}', '', '0', '1497087123', '1498882635'), ('127', '0', 'SHOPWCHAT', '{\"appid\":\"\",\"appsecret\":\"\"}', '', '1', '1497088090', '1498736290'), ('128', '0', 'BUYER_SELF_LIFTING', '0', '是否开启买家自提', '1', '1498730475', '1550476202'), ('129', '0', 'ORDER_SELLER_DISPATCHING', '1', '是否开启商家配送', '1', '1498730475', '1550476202'), ('130', '0', 'SHOPPING_BACK_POINTS', '3', '购物返积分设置', '1', '1498730475', '1550476202'), ('136', '0', 'MOBILEMESSAGE', '', '', '1', '1498894954', '1550476239'), ('137', '0', 'REGISTERANDVISIT', '{\"is_register\":\"1\",\"register_info\":\"plain\",\"name_keyword\":\"\",\"pwd_len\":\"5\",\"pwd_complexity\":\"\",\"terms_of_service\":\"\"}', '', '1', '1499310581', '1499391801'), ('138', '0', 'DEFAULT_IMAGE', '{\"default_goods_img\":\"upload/web_common/3b22fee90512e91bfc1586e016a7d8ea_360_360.png\",\"default_headimg\":\"upload/web_common/419b57e5802bd1f3b8fdedb81fdb5fce_360_360.png\"}', '默认图片', '1', '0', '0'), ('139', '0', 'UNIONPAY', '', '银联卡支付', '0', '1522756926', '0'), ('140', '0', 'SHARE_COUPON', '0', '分享送优惠券', '1', '1548752735', '1550476962'), ('141', '0', 'SIGN_COUPON', '0', '签到送优惠券', '1', '1548752735', '1550476962'), ('142', '0', 'REGISTER_COUPON', '1', '注册送优惠券', '1', '1548752735', '1550476962'), ('143', '0', 'COMMENT_COUPON', '0', '评论送优惠券', '1', '1548752735', '1550476962'), ('144', '0', 'CLICK_COUPON', '0', '点赞送优惠券', '1', '1548752735', '1550476962'), ('145', '0', 'COPYRIGHT_LOGO', '', '版权logo', '1', '1548753165', '0'), ('146', '0', 'COPYRIGHT_META', '', '备案号', '1', '1548753165', '0'), ('147', '0', 'COPYRIGHT_LINK', '', '版权链接', '1', '1548753165', '0'), ('148', '0', 'COPYRIGHT_DESC', '', '版权信息', '1', '1548753165', '0'), ('149', '0', 'COPYRIGHT_COMPANYNAME', '', '公司名称', '1', '1548753165', '0'), ('150', '0', 'IMG_THUMB', '{\"thumb_type\":\"2\",\"upload_size\":\"0\",\"upload_ext\":\"gif,jpg,jpeg,bmp,png\"}', 'thumb_type(缩略)  3 居中裁剪 2 缩放后填充 4 左上角裁剪 5 右下角裁剪 6 固定尺寸缩放', '1', '1549100390', '0'), ('151', '0', 'UPLOAD_TYPE', '1', '上传方式 1 本地  2 七牛', '1', '1549100390', '0'), ('152', '0', 'QINIU_CONFIG', '{\"Accesskey\":\"\",\"Secretkey\":\"\",\"Bucket\":\"\",\"QiniuUrl\":\"\"}', '七牛云存储参数配置', '1', '1549100390', '0'), ('153', '0', 'WATER_CONFIG', '{\"watermark\":\"\",\"transparency\":\"100\",\"waterPosition\":\"9\",\"imgWatermark\":\"\"}', '图片水印参数配置', '1', '1549100390', '0'), ('154', '0', 'WITHDRAW_BALANCE', '{\"withdraw_cash_min\":0,\"withdraw_multiple\":0,\"withdraw_poundage\":0,\"withdraw_message\":\"\",\"withdraw_account\":[{\"id\":\"bank_card\",\"name\":\"\\u94f6\\u884c\\u5361\",\"value\":1,\"is_checked\":1},{\"id\":\"wechat\",\"name\":\"\\u5fae\\u4fe1\",\"value\":2,\"is_checked\":0},{\"id\":\"alipay\",\"name\":\"\\u652f\\u4ed8\\u5b9d\",\"value\":3,\"is_checked\":0}]}', '会员余额提现设置', '0', '1549203224', '0'), ('155', '0', 'ORDER_IS_LOGISTICS', '0', '是否允许选择物流', '1', '1550476202', '0'), ('156', '0', 'IS_OPEN_VIRTUAL_GOODS', '0', '是否开启虚拟商品', '1', '1550476202', '0'), ('157', '0', 'IS_OPEN_ORDER_DESIGNATED_DELIVERY_TIME', '0', '是否开启订单指定配送时间', '1', '1550476202', '0'), ('158', '0', 'IS_OPEN_O2O', '0', '是否开启本地配送', '1', '1550476202', '0'), ('159', '0', 'DISTRIBUTION_TIME_SLOT', '[]', '配送时间时间段', '1', '1550476202', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_custom_template`
-- ----------------------------
DROP TABLE IF EXISTS `sys_custom_template`;
CREATE TABLE `sys_custom_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `template_name` varchar(250) DEFAULT NULL COMMENT '自定义模板名称（暂时预留）',
  `template_data` text NOT NULL COMMENT '模板数据（JSON格式）',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间戳',
  `modify_time` int(11) DEFAULT NULL COMMENT '修改时间戳',
  `is_enable` int(11) NOT NULL DEFAULT '0' COMMENT '是否启用 0 不启用 1 启用',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='手机端自定义模板';

-- ----------------------------
--  Table structure for `sys_district`
-- ----------------------------
DROP TABLE IF EXISTS `sys_district`;
CREATE TABLE `sys_district` (
  `district_id` int(11) NOT NULL AUTO_INCREMENT,
  `city_id` int(11) DEFAULT '0',
  `district_name` varchar(255) NOT NULL DEFAULT '',
  `sort` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`district_id`),
  KEY `IDX_g_district_DistrictName` (`district_name`)
) ENGINE=InnoDB AUTO_INCREMENT=2870 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=50;

-- ----------------------------
--  Records of `sys_district`
-- ----------------------------
BEGIN;
INSERT INTO `sys_district` VALUES ('1', '1', '东城区', '0'), ('2', '1', '西城区', '0'), ('3', '1', '崇文区', '0'), ('4', '1', '宣武区', '0'), ('5', '1', '朝阳区', '0'), ('6', '1', '丰台区', '0'), ('7', '1', '石景山区', '0'), ('8', '1', '海淀区', '0'), ('9', '1', '门头沟区', '0'), ('10', '1', '房山区', '0'), ('11', '1', '通州区', '0'), ('12', '1', '顺义区', '0'), ('13', '1', '昌平区', '0'), ('14', '1', '大兴区', '0'), ('15', '1', '怀柔区', '0'), ('16', '1', '平谷区', '0'), ('17', '1', '密云县', '0'), ('18', '1', '延庆县', '0'), ('19', '2', '和平区', '0'), ('20', '2', '河东区', '0'), ('21', '2', '河西区', '0'), ('22', '2', '南开区', '0'), ('23', '2', '河北区', '0'), ('24', '2', '红桥区', '0'), ('25', '2', '塘沽区', '0'), ('26', '2', '汉沽区', '0'), ('27', '2', '大港区', '0'), ('28', '2', '东丽区', '0'), ('29', '2', '西青区', '0'), ('30', '2', '津南区', '0'), ('31', '2', '北辰区', '0'), ('32', '2', '武清区', '0'), ('33', '2', '宝坻区', '0'), ('34', '2', '宁河县', '0'), ('35', '2', '静海县', '0'), ('36', '2', '蓟县', '0'), ('37', '3', '长安区', '0'), ('38', '3', '桥东区', '0'), ('39', '3', '桥西区', '0'), ('40', '3', '新华区', '0'), ('41', '3', '井陉矿区', '0'), ('42', '3', '裕华区', '0'), ('43', '3', '井陉县', '0'), ('44', '3', '正定县', '0'), ('45', '3', '栾城县', '0'), ('46', '3', '行唐县', '0'), ('47', '3', '灵寿县', '0'), ('48', '3', '高邑县', '0'), ('49', '3', '深泽县', '0'), ('50', '3', '赞皇县', '0'), ('51', '3', '无极县', '0'), ('52', '3', '平山县', '0'), ('53', '3', '元氏县', '0'), ('54', '3', '赵县', '0'), ('55', '3', '辛集市', '0'), ('56', '3', '藁城市', '0'), ('57', '3', '晋州市', '0'), ('58', '3', '新乐市', '0'), ('59', '3', '鹿泉市', '0'), ('60', '4', '路南区', '0'), ('61', '4', '路北区', '0'), ('62', '4', '古冶区', '0'), ('63', '4', '开平区', '0'), ('64', '4', '丰南区', '0'), ('65', '4', '丰润区', '0'), ('66', '4', '滦县', '0'), ('67', '4', '滦南县', '0'), ('68', '4', '乐亭县', '0'), ('69', '4', '迁西县', '0'), ('70', '4', '玉田县', '0'), ('71', '4', '唐海县', '0'), ('72', '4', '遵化市', '0'), ('73', '4', '迁安市', '0'), ('74', '5', '海港区', '0'), ('75', '5', '山海关区', '0'), ('76', '5', '北戴河区', '0'), ('77', '5', '青龙满族自治县', '0'), ('78', '5', '昌黎县', '0'), ('79', '5', '抚宁县', '0'), ('80', '5', '卢龙县', '0'), ('81', '6', '邯山区', '0'), ('82', '6', '丛台区', '0'), ('83', '6', '复兴区', '0'), ('84', '6', '峰峰矿区', '0'), ('85', '6', '邯郸县', '0'), ('86', '6', '临漳县', '0'), ('87', '6', '成安县', '0'), ('88', '6', '大名县', '0'), ('89', '6', '涉县', '0'), ('90', '6', '磁县', '0'), ('91', '6', '肥乡县', '0'), ('92', '6', '永年县', '0'), ('93', '6', '邱县', '0'), ('94', '6', '鸡泽县', '0'), ('95', '6', '广平县', '0'), ('96', '6', '馆陶县', '0'), ('97', '6', '魏县', '0'), ('98', '6', '曲周县', '0'), ('99', '6', '武安市', '0'), ('100', '7', '桥东区', '0'), ('101', '7', '桥西区', '0'), ('102', '7', '邢台县', '0'), ('103', '7', '临城县', '0'), ('104', '7', '内丘县', '0'), ('105', '7', '柏乡县', '0'), ('106', '7', '隆尧县', '0'), ('107', '7', '任县', '0'), ('108', '7', '南和县', '0'), ('109', '7', '宁晋县', '0'), ('110', '7', '巨鹿县', '0'), ('111', '7', '新河县', '0'), ('112', '7', '广宗县', '0'), ('113', '7', '平乡县', '0'), ('114', '7', '威县', '0'), ('115', '7', '清河县', '0'), ('116', '7', '临西县', '0'), ('117', '7', '南宫市', '0'), ('118', '7', '沙河市', '0'), ('119', '8', '新市区', '0'), ('120', '8', '北市区', '0'), ('121', '8', '南市区', '0'), ('122', '8', '满城县', '0'), ('123', '8', '清苑县', '0'), ('124', '8', '涞水县', '0'), ('125', '8', '阜平县', '0'), ('126', '8', '徐水县', '0'), ('127', '8', '定兴县', '0'), ('128', '8', '唐县', '0'), ('129', '8', '高阳县', '0'), ('130', '8', '容城县', '0'), ('131', '8', '涞源县', '0'), ('132', '8', '望都县', '0'), ('133', '8', '安新县', '0'), ('134', '8', '易县', '0'), ('135', '8', '曲阳县', '0'), ('136', '8', '蠡县', '0'), ('137', '8', '顺平县', '0'), ('138', '8', '博野县', '0'), ('139', '8', '雄县', '0'), ('140', '8', '涿州市', '0'), ('141', '8', '定州市', '0'), ('142', '8', '安国市', '0'), ('143', '8', '高碑店市', '0'), ('144', '9', '桥东区', '0'), ('145', '9', '桥西区', '0'), ('146', '9', '宣化区', '0'), ('147', '9', '下花园区', '0'), ('148', '9', '宣化县', '0'), ('149', '9', '张北县', '0'), ('150', '9', '康保县', '0'), ('151', '9', '沽源县', '0'), ('152', '9', '尚义县', '0'), ('153', '9', '蔚县', '0'), ('154', '9', '阳原县', '0'), ('155', '9', '怀安县', '0'), ('156', '9', '万全县', '0'), ('157', '9', '怀来县', '0'), ('158', '9', '涿鹿县', '0'), ('159', '9', '赤城县', '0'), ('160', '9', '崇礼县', '0'), ('161', '10', '双桥区', '0'), ('162', '10', '双滦区', '0'), ('163', '10', '鹰手营子矿区', '0'), ('164', '10', '承德县', '0'), ('165', '10', '兴隆县', '0'), ('166', '10', '平泉县', '0'), ('167', '10', '滦平县', '0'), ('168', '10', '隆化县', '0'), ('169', '10', '丰宁满族自治县', '0'), ('170', '10', '宽城满族自治县', '0'), ('171', '10', '围场满族蒙古族自治县', '0'), ('172', '11', '新华区', '0'), ('173', '11', '运河区', '0'), ('174', '11', '沧县', '0'), ('175', '11', '青县', '0'), ('176', '11', '东光县', '0'), ('177', '11', '海兴县', '0'), ('178', '11', '盐山县', '0'), ('179', '11', '肃宁县', '0'), ('180', '11', '南皮县', '0'), ('181', '11', '吴桥县', '0'), ('182', '11', '献县', '0'), ('183', '11', '孟村回族自治县', '0'), ('184', '11', '泊头市', '0'), ('185', '11', '任丘市', '0'), ('186', '11', '黄骅市', '0'), ('187', '11', '河间市', '0'), ('188', '12', '安次区', '0'), ('189', '12', '广阳区', '0'), ('190', '12', '固安县', '0'), ('191', '12', '永清县', '0'), ('192', '12', '香河县', '0'), ('193', '12', '大城县', '0'), ('194', '12', '文安县', '0'), ('195', '12', '大厂回族自治县', '0'), ('196', '12', '霸州市', '0'), ('197', '12', '三河市', '0'), ('198', '13', '桃城区', '0'), ('199', '13', '枣强县', '0'), ('200', '13', '武邑县', '0'), ('201', '13', '武强县', '0'), ('202', '13', '饶阳县', '0'), ('203', '13', '安平县', '0'), ('204', '13', '故城县', '0'), ('205', '13', '景县', '0'), ('206', '13', '阜城县', '0'), ('207', '13', '冀州市', '0'), ('208', '13', '深州市', '0'), ('209', '14', '小店区', '0'), ('210', '14', '迎泽区', '0'), ('211', '14', '杏花岭区', '0'), ('212', '14', '尖草坪区', '0'), ('213', '14', '万柏林区', '0'), ('214', '14', '晋源区', '0'), ('215', '14', '清徐县', '0'), ('216', '14', '阳曲县', '0'), ('217', '14', '娄烦县', '0'), ('218', '14', '古交市', '0'), ('219', '15', '城区', '0'), ('220', '15', '矿区', '0'), ('221', '15', '南郊区', '0'), ('222', '15', '新荣区', '0'), ('223', '15', '阳高县', '0'), ('224', '15', '天镇县', '0'), ('225', '15', '广灵县', '0'), ('226', '15', '灵丘县', '0'), ('227', '15', '浑源县', '0'), ('228', '15', '左云县', '0'), ('229', '15', '大同县', '0'), ('230', '16', '城区', '0'), ('231', '16', '矿区', '0'), ('232', '16', '郊区', '0'), ('233', '16', '平定县', '0'), ('234', '16', '盂县', '0'), ('235', '17', '城区', '0'), ('236', '17', '郊区', '0'), ('237', '17', '长治县', '0'), ('238', '17', '襄垣县', '0'), ('239', '17', '屯留县', '0'), ('240', '17', '平顺县', '0'), ('241', '17', '黎城县', '0'), ('242', '17', '壶关县', '0'), ('243', '17', '长子县', '0'), ('244', '17', '武乡县', '0'), ('245', '17', '沁县', '0'), ('246', '17', '沁源县', '0'), ('247', '17', '潞城市', '0'), ('248', '18', '城区', '0'), ('249', '18', '沁水县', '0'), ('250', '18', '阳城县', '0'), ('251', '18', '陵川县', '0'), ('252', '18', '泽州县', '0'), ('253', '18', '高平市', '0'), ('254', '19', '朔城区', '0'), ('255', '19', '平鲁区', '0'), ('256', '19', '山阴县', '0'), ('257', '19', '应县', '0'), ('258', '19', '右玉县', '0'), ('259', '19', '怀仁县', '0'), ('260', '20', '榆次区', '0'), ('261', '20', '榆社县', '0'), ('262', '20', '左权县', '0'), ('263', '20', '和顺县', '0'), ('264', '20', '昔阳县', '0'), ('265', '20', '寿阳县', '0'), ('266', '20', '太谷县', '0'), ('267', '20', '祁县', '0'), ('268', '20', '平遥县', '0'), ('269', '20', '灵石县', '0'), ('270', '20', '介休市', '0'), ('271', '21', '盐湖区', '0'), ('272', '21', '临猗县', '0'), ('273', '21', '万荣县', '0'), ('274', '21', '闻喜县', '0'), ('275', '21', '稷山县', '0'), ('276', '21', '新绛县', '0'), ('277', '21', '绛县', '0'), ('278', '21', '垣曲县', '0'), ('279', '21', '夏县', '0'), ('280', '21', '平陆县', '0'), ('281', '21', '芮城县', '0'), ('282', '21', '永济市', '0'), ('283', '21', '河津市', '0'), ('284', '22', '忻府区', '0'), ('285', '22', '定襄县', '0'), ('286', '22', '五台县', '0'), ('287', '22', '代县', '0'), ('288', '22', '繁峙县', '0'), ('289', '22', '宁武县', '0'), ('290', '22', '静乐县', '0'), ('291', '22', '神池县', '0'), ('292', '22', '五寨县', '0'), ('293', '22', '岢岚县', '0'), ('294', '22', '河曲县', '0'), ('295', '22', '保德县', '0'), ('296', '22', '偏关县', '0'), ('297', '22', '原平市', '0'), ('298', '23', '尧都区', '0'), ('299', '23', '曲沃县', '0'), ('300', '23', '翼城县', '0'), ('301', '23', '襄汾县', '0'), ('302', '23', '洪洞县', '0'), ('303', '23', '古县', '0'), ('304', '23', '安泽县', '0'), ('305', '23', '浮山县', '0'), ('306', '23', '吉县', '0'), ('307', '23', '乡宁县', '0'), ('308', '23', '大宁县', '0'), ('309', '23', '隰县', '0'), ('310', '23', '永和县', '0'), ('311', '23', '蒲县', '0'), ('312', '23', '汾西县', '0'), ('313', '23', '侯马市', '0'), ('314', '23', '霍州市', '0'), ('315', '24', '离石区', '0'), ('316', '24', '文水县', '0'), ('317', '24', '交城县', '0'), ('318', '24', '兴县', '0'), ('319', '24', '临县', '0'), ('320', '24', '柳林县', '0'), ('321', '24', '石楼县', '0'), ('322', '24', '岚县', '0'), ('323', '24', '方山县', '0'), ('324', '24', '中阳县', '0'), ('325', '24', '交口县', '0'), ('326', '24', '孝义市', '0'), ('327', '24', '汾阳市', '0'), ('328', '25', '新城区', '0'), ('329', '25', '回民区', '0'), ('330', '25', '玉泉区', '0'), ('331', '25', '赛罕区', '0'), ('332', '25', '土默特左旗', '0'), ('333', '25', '托克托县', '0'), ('334', '25', '和林格尔县', '0'), ('335', '25', '清水河县', '0'), ('336', '25', '武川县', '0'), ('337', '26', '东河区', '0'), ('338', '26', '昆都仑区', '0'), ('339', '26', '青山区', '0'), ('340', '26', '石拐区', '0'), ('341', '26', '白云矿区', '0'), ('342', '26', '九原区', '0'), ('343', '26', '土默特右旗', '0'), ('344', '26', '固阳县', '0'), ('345', '26', '达尔罕茂明安联合旗', '0'), ('346', '27', '海勃湾区', '0'), ('347', '27', '海南区', '0'), ('348', '27', '乌达区', '0'), ('349', '28', '红山区', '0'), ('350', '28', '元宝山区', '0'), ('351', '28', '松山区', '0'), ('352', '28', '阿鲁科尔沁旗', '0'), ('353', '28', '巴林左旗', '0'), ('354', '28', '巴林右旗', '0'), ('355', '28', '林西县', '0'), ('356', '28', '克什克腾旗', '0'), ('357', '28', '翁牛特旗', '0'), ('358', '28', '喀喇沁旗', '0'), ('359', '28', '宁城县', '0'), ('360', '28', '敖汉旗', '0'), ('361', '29', '科尔沁区', '0'), ('362', '29', '科尔沁左翼中旗', '0'), ('363', '29', '科尔沁左翼后旗', '0'), ('364', '29', '开鲁县', '0'), ('365', '29', '库伦旗', '0'), ('366', '29', '奈曼旗', '0'), ('367', '29', '扎鲁特旗', '0'), ('368', '29', '霍林郭勒市', '0'), ('369', '30', '东胜区', '0'), ('370', '30', '达拉特旗', '0'), ('371', '30', '准格尔旗', '0'), ('372', '30', '鄂托克前旗', '0'), ('373', '30', '鄂托克旗', '0'), ('374', '30', '杭锦旗', '0'), ('375', '30', '乌审旗', '0'), ('376', '30', '伊金霍洛旗', '0'), ('377', '31', '海拉尔区', '0'), ('378', '31', '阿荣旗', '0'), ('379', '31', '莫力达瓦达斡尔族自治旗', '0'), ('380', '31', '鄂伦春自治旗', '0'), ('381', '31', '鄂温克族自治旗', '0'), ('382', '31', '陈巴尔虎旗', '0'), ('383', '31', '新巴尔虎左旗', '0'), ('384', '31', '新巴尔虎右旗', '0'), ('385', '31', '满洲里市', '0'), ('386', '31', '牙克石市', '0'), ('387', '31', '扎兰屯市', '0'), ('388', '31', '额尔古纳市', '0'), ('389', '31', '根河市', '0'), ('390', '32', '临河区', '0'), ('391', '32', '五原县', '0'), ('392', '32', '磴口县', '0'), ('393', '32', '乌拉特前旗', '0'), ('394', '32', '乌拉特中旗', '0'), ('395', '32', '乌拉特后旗', '0'), ('396', '32', '杭锦后旗', '0'), ('397', '33', '集宁区', '0'), ('398', '33', '卓资县', '0'), ('399', '33', '化德县', '0'), ('400', '33', '商都县', '0'), ('401', '33', '兴和县', '0'), ('402', '33', '凉城县', '0'), ('403', '33', '察哈尔右翼前旗', '0'), ('404', '33', '察哈尔右翼中旗', '0'), ('405', '33', '察哈尔右翼后旗', '0'), ('406', '33', '四子王旗', '0'), ('407', '33', '丰镇市', '0'), ('408', '34', '乌兰浩特市', '0'), ('409', '34', '阿尔山市', '0'), ('410', '34', '科尔沁右翼前旗', '0'), ('411', '34', '科尔沁右翼中旗', '0'), ('412', '34', '扎赉特旗', '0'), ('413', '34', '突泉县', '0'), ('414', '35', '二连浩特市', '0'), ('415', '35', '锡林浩特市', '0'), ('416', '35', '阿巴嘎旗', '0'), ('417', '35', '苏尼特左旗', '0'), ('418', '35', '苏尼特右旗', '0'), ('419', '35', '东乌珠穆沁旗', '0'), ('420', '35', '西乌珠穆沁旗', '0'), ('421', '35', '太仆寺旗', '0'), ('422', '35', '镶黄旗', '0'), ('423', '35', '正镶白旗', '0'), ('424', '35', '正蓝旗', '0'), ('425', '35', '多伦县', '0'), ('426', '36', '阿拉善左旗', '0'), ('427', '36', '阿拉善右旗', '0'), ('428', '36', '额济纳旗', '0'), ('429', '37', '和平区', '0'), ('430', '37', '沈河区', '0'), ('431', '37', '大东区', '0'), ('432', '37', '皇姑区', '0'), ('433', '37', '铁西区', '0'), ('434', '37', '苏家屯区', '0'), ('435', '37', '东陵区', '0'), ('436', '37', '新城子区', '0'), ('437', '37', '于洪区', '0'), ('438', '37', '辽中县', '0'), ('439', '37', '康平县', '0'), ('440', '37', '法库县', '0'), ('441', '37', '新民市', '0'), ('442', '38', '中山区', '0'), ('443', '38', '西岗区', '0'), ('444', '38', '沙河口区', '0'), ('445', '38', '甘井子区', '0'), ('446', '38', '旅顺口区', '0'), ('447', '38', '金州区', '0'), ('448', '38', '长海县', '0'), ('449', '38', '瓦房店市', '0'), ('450', '38', '普兰店市', '0'), ('451', '38', '庄河市', '0'), ('452', '39', '铁东区', '0'), ('453', '39', '铁西区', '0'), ('454', '39', '立山区', '0'), ('455', '39', '千山区', '0'), ('456', '39', '台安县', '0'), ('457', '39', '岫岩满族自治县', '0'), ('458', '39', '海城市', '0'), ('459', '40', '新抚区', '0'), ('460', '40', '东洲区', '0'), ('461', '40', '望花区', '0'), ('462', '40', '顺城区', '0'), ('463', '40', '抚顺县', '0'), ('464', '40', '新宾满族自治县', '0'), ('465', '40', '清原满族自治县', '0'), ('466', '41', '平山区', '0'), ('467', '41', '溪湖区', '0'), ('468', '41', '明山区', '0'), ('469', '41', '南芬区', '0'), ('470', '41', '本溪满族自治县', '0'), ('471', '41', '桓仁满族自治县', '0'), ('472', '42', '元宝区', '0'), ('473', '42', '振兴区', '0'), ('474', '42', '振安区', '0'), ('475', '42', '宽甸满族自治县', '0'), ('476', '42', '东港市', '0'), ('477', '42', '凤城市', '0'), ('478', '43', '古塔区', '0'), ('479', '43', '凌河区', '0'), ('480', '43', '太和区', '0'), ('481', '43', '黑山县', '0'), ('482', '43', '义县', '0'), ('483', '43', '凌海市', '0'), ('484', '43', '北宁市', '0'), ('485', '44', '站前区', '0'), ('486', '44', '西市区', '0'), ('487', '44', '鲅鱼圈区', '0'), ('488', '44', '老边区', '0'), ('489', '44', '盖州市', '0'), ('490', '44', '大石桥市', '0'), ('491', '45', '海州区', '0'), ('492', '45', '新邱区', '0'), ('493', '45', '太平区', '0'), ('494', '45', '清河门区', '0'), ('495', '45', '细河区', '0'), ('496', '45', '阜新蒙古族自治县', '0'), ('497', '45', '彰武县', '0'), ('498', '46', '白塔区', '0'), ('499', '46', '文圣区', '0'), ('500', '46', '宏伟区', '0'), ('501', '46', '弓长岭区', '0'), ('502', '46', '太子河区', '0'), ('503', '46', '辽阳县', '0'), ('504', '46', '灯塔市', '0'), ('505', '47', '双台子区', '0'), ('506', '47', '兴隆台区', '0'), ('507', '47', '大洼县', '0'), ('508', '47', '盘山县', '0'), ('509', '48', '银州区', '0'), ('510', '48', '清河区', '0'), ('511', '48', '铁岭县', '0'), ('512', '48', '西丰县', '0'), ('513', '48', '昌图县', '0'), ('514', '48', '调兵山市', '0'), ('515', '48', '开原市', '0'), ('516', '49', '双塔区', '0'), ('517', '49', '龙城区', '0'), ('518', '49', '朝阳县', '0'), ('519', '49', '建平县', '0'), ('520', '49', '喀喇沁左翼蒙古族自治县', '0'), ('521', '49', '北票市', '0'), ('522', '49', '凌源市', '0'), ('523', '50', '连山区', '0'), ('524', '50', '龙港区', '0'), ('525', '50', '南票区', '0'), ('526', '50', '绥中县', '0'), ('527', '50', '建昌县', '0'), ('528', '50', '兴城市', '0'), ('529', '51', '南关区', '0'), ('530', '51', '宽城区', '0'), ('531', '51', '朝阳区', '0'), ('532', '51', '二道区', '0'), ('533', '51', '绿园区', '0'), ('534', '51', '双阳区', '0'), ('535', '51', '农安县', '0'), ('536', '51', '九台市', '0'), ('537', '51', '榆树市', '0'), ('538', '51', '德惠市', '0'), ('539', '52', '昌邑区', '0'), ('540', '52', '龙潭区', '0'), ('541', '52', '船营区', '0'), ('542', '52', '丰满区', '0'), ('543', '52', '永吉县', '0'), ('544', '52', '蛟河市', '0'), ('545', '52', '桦甸市', '0'), ('546', '52', '舒兰市', '0'), ('547', '52', '磐石市', '0'), ('548', '53', '铁西区', '0'), ('549', '53', '铁东区', '0'), ('550', '53', '梨树县', '0'), ('551', '53', '伊通满族自治县', '0'), ('552', '53', '公主岭市', '0'), ('553', '53', '双辽市', '0'), ('554', '54', '龙山区', '0'), ('555', '54', '西安区', '0'), ('556', '54', '东丰县', '0'), ('557', '54', '东辽县', '0'), ('558', '55', '东昌区', '0'), ('559', '55', '二道江区', '0'), ('560', '55', '通化县', '0'), ('561', '55', '辉南县', '0'), ('562', '55', '柳河县', '0'), ('563', '55', '梅河口市', '0'), ('564', '55', '集安市', '0'), ('565', '56', '八道江区', '0'), ('566', '56', '抚松县', '0'), ('567', '56', '靖宇县', '0'), ('568', '56', '长白朝鲜族自治县', '0'), ('569', '56', '江源县', '0'), ('570', '56', '临江市', '0'), ('571', '57', '宁江区', '0'), ('572', '57', '前郭尔罗斯蒙古族自治县', '0'), ('573', '57', '长岭县', '0'), ('574', '57', '乾安县', '0'), ('575', '57', '扶余县', '0'), ('576', '58', '洮北区', '0'), ('577', '58', '镇赉县', '0'), ('578', '58', '通榆县', '0'), ('579', '58', '洮南市', '0'), ('580', '58', '大安市', '0'), ('581', '59', '延吉市', '0'), ('582', '59', '图们市', '0'), ('583', '59', '敦化市', '0'), ('584', '59', '珲春市', '0'), ('585', '59', '龙井市', '0'), ('586', '59', '和龙市', '0'), ('587', '59', '汪清县', '0'), ('588', '59', '安图县', '0'), ('589', '60', '道里区', '0'), ('590', '60', '南岗区', '0'), ('591', '60', '道外区', '0'), ('592', '60', '香坊区', '0'), ('593', '60', '动力区', '0'), ('594', '60', '平房区', '0'), ('595', '60', '松北区', '0'), ('596', '60', '呼兰区', '0'), ('597', '60', '依兰县', '0'), ('598', '60', '方正县', '0'), ('599', '60', '宾县', '0'), ('600', '60', '巴彦县', '0'), ('601', '60', '木兰县', '0'), ('602', '60', '通河县', '0'), ('603', '60', '延寿县', '0'), ('604', '60', '阿城市', '0'), ('605', '60', '双城市', '0'), ('606', '60', '尚志市', '0'), ('607', '60', '五常市', '0'), ('608', '61', '龙沙区', '0'), ('609', '61', '建华区', '0'), ('610', '61', '铁锋区', '0'), ('611', '61', '昂昂溪区', '0'), ('612', '61', '富拉尔基区', '0'), ('613', '61', '碾子山区', '0'), ('614', '61', '梅里斯达斡尔族区', '0'), ('615', '61', '龙江县', '0'), ('616', '61', '依安县', '0'), ('617', '61', '泰来县', '0'), ('618', '61', '甘南县', '0'), ('619', '61', '富裕县', '0'), ('620', '61', '克山县', '0'), ('621', '61', '克东县', '0'), ('622', '61', '拜泉县', '0'), ('623', '61', '讷河市', '0'), ('624', '62', '鸡冠区', '0'), ('625', '62', '恒山区', '0'), ('626', '62', '滴道区', '0'), ('627', '62', '梨树区', '0'), ('628', '62', '城子河区', '0'), ('629', '62', '麻山区', '0'), ('630', '62', '鸡东县', '0'), ('631', '62', '虎林市', '0'), ('632', '62', '密山市', '0'), ('633', '63', '向阳区', '0'), ('634', '63', '工农区', '0'), ('635', '63', '南山区', '0'), ('636', '63', '兴安区', '0'), ('637', '63', '东山区', '0'), ('638', '63', '兴山区', '0'), ('639', '63', '萝北县', '0'), ('640', '63', '绥滨县', '0'), ('641', '64', '尖山区', '0'), ('642', '64', '岭东区', '0'), ('643', '64', '四方台区', '0'), ('644', '64', '宝山区', '0'), ('645', '64', '集贤县', '0'), ('646', '64', '友谊县', '0'), ('647', '64', '宝清县', '0'), ('648', '64', '饶河县', '0'), ('649', '65', '萨尔图区', '0'), ('650', '65', '龙凤区', '0'), ('651', '65', '让胡路区', '0'), ('652', '65', '红岗区', '0'), ('653', '65', '大同区', '0'), ('654', '65', '肇州县', '0'), ('655', '65', '肇源县', '0'), ('656', '65', '林甸县', '0'), ('657', '65', '杜尔伯特蒙古族自治县', '0'), ('658', '66', '伊春区', '0'), ('659', '66', '南岔区', '0'), ('660', '66', '友好区', '0'), ('661', '66', '西林区', '0'), ('662', '66', '翠峦区', '0'), ('663', '66', '新青区', '0'), ('664', '66', '美溪区', '0'), ('665', '66', '金山屯区', '0'), ('666', '66', '五营区', '0'), ('667', '66', '乌马河区', '0'), ('668', '66', '汤旺河区', '0'), ('669', '66', '带岭区', '0'), ('670', '66', '乌伊岭区', '0'), ('671', '66', '红星区', '0'), ('672', '66', '上甘岭区', '0'), ('673', '66', '嘉荫县', '0'), ('674', '66', '铁力市', '0'), ('675', '67', '永红区', '0'), ('676', '67', '向阳区', '0'), ('677', '67', '前进区', '0'), ('678', '67', '东风区', '0'), ('679', '67', '郊区', '0'), ('680', '67', '桦南县', '0'), ('681', '67', '桦川县', '0'), ('682', '67', '汤原县', '0'), ('683', '67', '抚远县', '0'), ('684', '67', '同江市', '0'), ('685', '67', '富锦市', '0'), ('686', '68', '新兴区', '0'), ('687', '68', '桃山区', '0'), ('688', '68', '茄子河区', '0'), ('689', '68', '勃利县', '0'), ('690', '69', '东安区', '0'), ('691', '69', '阳明区', '0'), ('692', '69', '爱民区', '0'), ('693', '69', '西安区', '0'), ('694', '69', '东宁县', '0'), ('695', '69', '林口县', '0'), ('696', '69', '绥芬河市', '0'), ('697', '69', '海林市', '0'), ('698', '69', '宁安市', '0'), ('699', '69', '穆棱市', '0'), ('700', '70', '爱辉区', '0'), ('701', '70', '嫩江县', '0'), ('702', '70', '逊克县', '0'), ('703', '70', '孙吴县', '0'), ('704', '70', '北安市', '0'), ('705', '70', '五大连池市', '0'), ('706', '71', '北林区', '0'), ('707', '71', '望奎县', '0'), ('708', '71', '兰西县', '0'), ('709', '71', '青冈县', '0'), ('710', '71', '庆安县', '0'), ('711', '71', '明水县', '0'), ('712', '71', '绥棱县', '0'), ('713', '71', '安达市', '0'), ('714', '71', '肇东市', '0'), ('715', '71', '海伦市', '0'), ('716', '72', '呼玛县', '0'), ('717', '72', '塔河县', '0'), ('718', '72', '漠河县', '0'), ('719', '73', '黄浦区', '0'), ('720', '73', '卢湾区', '0'), ('721', '73', '徐汇区', '0'), ('722', '73', '长宁区', '0'), ('723', '73', '静安区', '0'), ('724', '73', '普陀区', '0'), ('725', '73', '闸北区', '0'), ('726', '73', '虹口区', '0'), ('727', '73', '杨浦区', '0'), ('728', '73', '闵行区', '0'), ('729', '73', '宝山区', '0'), ('730', '73', '嘉定区', '0'), ('731', '73', '浦东新区', '0'), ('732', '73', '金山区', '0'), ('733', '73', '松江区', '0'), ('734', '73', '青浦区', '0'), ('735', '73', '南汇区', '0'), ('736', '73', '奉贤区', '0'), ('737', '73', '崇明县', '0'), ('738', '74', '玄武区', '0'), ('739', '74', '白下区', '0'), ('740', '74', '秦淮区', '0'), ('741', '74', '建邺区', '0'), ('742', '74', '鼓楼区', '0'), ('743', '74', '下关区', '0'), ('744', '74', '浦口区', '0'), ('745', '74', '栖霞区', '0'), ('746', '74', '雨花台区', '0'), ('747', '74', '江宁区', '0'), ('748', '74', '六合区', '0'), ('749', '74', '溧水县', '0'), ('750', '74', '高淳县', '0'), ('751', '75', '崇安区', '0'), ('752', '75', '南长区', '0'), ('753', '75', '北塘区', '0'), ('754', '75', '锡山区', '0'), ('755', '75', '惠山区', '0'), ('756', '75', '滨湖区', '0'), ('757', '75', '江阴市', '0'), ('758', '75', '宜兴市', '0'), ('759', '76', '鼓楼区', '0'), ('760', '76', '云龙区', '0'), ('761', '76', '九里区', '0'), ('762', '76', '贾汪区', '0'), ('763', '76', '泉山区', '0'), ('764', '76', '丰县', '0'), ('765', '76', '沛县', '0'), ('766', '76', '铜山县', '0'), ('767', '76', '睢宁县', '0'), ('768', '76', '新沂市', '0'), ('769', '76', '邳州市', '0'), ('770', '77', '天宁区', '0'), ('771', '77', '钟楼区', '0'), ('772', '77', '戚墅堰区', '0'), ('773', '77', '新北区', '0'), ('774', '77', '武进区', '0'), ('775', '77', '溧阳市', '0'), ('776', '77', '金坛市', '0'), ('777', '78', '沧浪区', '0'), ('778', '78', '平江区', '0'), ('779', '78', '金阊区', '0'), ('780', '78', '虎丘区', '0'), ('781', '78', '吴中区', '0'), ('782', '78', '相城区', '0'), ('783', '78', '常熟市', '0'), ('784', '78', '张家港市', '0'), ('785', '78', '昆山市', '0'), ('786', '78', '吴江市', '0'), ('787', '78', '太仓市', '0'), ('788', '79', '崇川区', '0'), ('789', '79', '港闸区', '0'), ('790', '79', '海安县', '0'), ('791', '79', '如东县', '0'), ('792', '79', '启东市', '0'), ('793', '79', '如皋市', '0'), ('794', '79', '通州市', '0'), ('795', '79', '海门市', '0'), ('796', '80', '连云区', '0'), ('797', '80', '新浦区', '0'), ('798', '80', '海州区', '0'), ('799', '80', '赣榆县', '0'), ('800', '80', '东海县', '0'), ('801', '80', '灌云县', '0'), ('802', '80', '灌南县', '0'), ('803', '81', '清河区', '0'), ('804', '81', '楚州区', '0'), ('805', '81', '淮阴区', '0'), ('806', '81', '清浦区', '0'), ('807', '81', '涟水县', '0'), ('808', '81', '洪泽县', '0'), ('809', '81', '盱眙县', '0'), ('810', '81', '金湖县', '0'), ('811', '82', '亭湖区', '0'), ('812', '82', '盐都区', '0'), ('813', '82', '响水县', '0'), ('814', '82', '滨海县', '0'), ('815', '82', '阜宁县', '0'), ('816', '82', '射阳县', '0'), ('817', '82', '建湖县', '0'), ('818', '82', '东台市', '0'), ('819', '82', '大丰市', '0'), ('820', '83', '广陵区', '0'), ('821', '83', '邗江区', '0'), ('822', '83', '维扬区', '0'), ('823', '83', '宝应县', '0'), ('824', '83', '仪征市', '0'), ('825', '83', '高邮市', '0'), ('826', '83', '江都市', '0'), ('827', '84', '京口区', '0'), ('828', '84', '润州区', '0'), ('829', '84', '丹徒区', '0'), ('830', '84', '丹阳市', '0'), ('831', '84', '扬中市', '0'), ('832', '84', '句容市', '0'), ('833', '85', '海陵区', '0'), ('834', '85', '高港区', '0'), ('835', '85', '兴化市', '0'), ('836', '85', '靖江市', '0'), ('837', '85', '泰兴市', '0'), ('838', '85', '姜堰市', '0'), ('839', '86', '宿城区', '0'), ('840', '86', '宿豫区', '0'), ('841', '86', '沭阳县', '0'), ('842', '86', '泗阳县', '0'), ('843', '86', '泗洪县', '0'), ('844', '87', '上城区', '0'), ('845', '87', '下城区', '0'), ('846', '87', '江干区', '0'), ('847', '87', '拱墅区', '0'), ('848', '87', '西湖区', '0'), ('849', '87', '滨江区', '0'), ('850', '87', '萧山区', '0'), ('851', '87', '余杭区', '0'), ('852', '87', '桐庐县', '0'), ('853', '87', '淳安县', '0'), ('854', '87', '建德市', '0'), ('855', '87', '富阳市', '0'), ('856', '87', '临安市', '0'), ('857', '88', '海曙区', '0'), ('858', '88', '江东区', '0'), ('859', '88', '江北区', '0'), ('860', '88', '北仑区', '0'), ('861', '88', '镇海区', '0'), ('862', '88', '鄞州区', '0'), ('863', '88', '象山县', '0'), ('864', '88', '宁海县', '0'), ('865', '88', '余姚市', '0'), ('866', '88', '慈溪市', '0'), ('867', '88', '奉化市', '0'), ('868', '89', '鹿城区', '0'), ('869', '89', '龙湾区', '0'), ('870', '89', '瓯海区', '0'), ('871', '89', '洞头县', '0'), ('872', '89', '永嘉县', '0'), ('873', '89', '平阳县', '0'), ('874', '89', '苍南县', '0'), ('875', '89', '文成县', '0'), ('876', '89', '泰顺县', '0'), ('877', '89', '瑞安市', '0'), ('878', '89', '乐清市', '0'), ('879', '90', '秀城区', '0'), ('880', '90', '秀洲区', '0'), ('881', '90', '嘉善县', '0'), ('882', '90', '海盐县', '0'), ('883', '90', '海宁市', '0'), ('884', '90', '平湖市', '0'), ('885', '90', '桐乡市', '0'), ('886', '91', '吴兴区', '0'), ('887', '91', '南浔区', '0'), ('888', '91', '德清县', '0'), ('889', '91', '长兴县', '0'), ('890', '91', '安吉县', '0'), ('891', '92', '越城区', '0'), ('892', '92', '绍兴县', '0'), ('893', '92', '新昌县', '0'), ('894', '92', '诸暨市', '0'), ('895', '92', '上虞市', '0'), ('896', '92', '嵊州市', '0'), ('897', '93', '婺城区', '0'), ('898', '93', '金东区', '0'), ('899', '93', '武义县', '0'), ('900', '93', '浦江县', '0'), ('901', '93', '磐安县', '0'), ('902', '93', '兰溪市', '0'), ('903', '93', '义乌市', '0'), ('904', '93', '东阳市', '0'), ('905', '93', '永康市', '0'), ('906', '94', '柯城区', '0'), ('907', '94', '衢江区', '0'), ('908', '94', '常山县', '0'), ('909', '94', '开化县', '0'), ('910', '94', '龙游县', '0'), ('911', '94', '江山市', '0'), ('912', '95', '定海区', '0'), ('913', '95', '普陀区', '0'), ('914', '95', '岱山县', '0'), ('915', '95', '嵊泗县', '0'), ('916', '96', '椒江区', '0'), ('917', '96', '黄岩区', '0'), ('918', '96', '路桥区', '0'), ('919', '96', '玉环县', '0'), ('920', '96', '三门县', '0'), ('921', '96', '天台县', '0'), ('922', '96', '仙居县', '0'), ('923', '96', '温岭市', '0'), ('924', '96', '临海市', '0'), ('925', '97', '莲都区', '0'), ('926', '97', '青田县', '0'), ('927', '97', '缙云县', '0'), ('928', '97', '遂昌县', '0'), ('929', '97', '松阳县', '0'), ('930', '97', '云和县', '0'), ('931', '97', '庆元县', '0'), ('932', '97', '景宁畲族自治县', '0'), ('933', '97', '龙泉市', '0'), ('934', '98', '瑶海区', '0'), ('935', '98', '庐阳区', '0'), ('936', '98', '蜀山区', '0'), ('937', '98', '包河区', '0'), ('938', '98', '长丰县', '0'), ('939', '98', '肥东县', '0'), ('940', '98', '肥西县', '0'), ('941', '99', '镜湖区', '0'), ('942', '99', '马塘区', '0'), ('943', '99', '新芜区', '0'), ('944', '99', '鸠江区', '0'), ('945', '99', '芜湖县', '0'), ('946', '99', '繁昌县', '0'), ('947', '99', '南陵县', '0'), ('948', '100', '龙子湖区', '0'), ('949', '100', '蚌山区', '0'), ('950', '100', '禹会区', '0'), ('951', '100', '淮上区', '0'), ('952', '100', '怀远县', '0'), ('953', '100', '五河县', '0'), ('954', '100', '固镇县', '0'), ('955', '101', '大通区', '0'), ('956', '101', '田家庵区', '0'), ('957', '101', '谢家集区', '0'), ('958', '101', '八公山区', '0'), ('959', '101', '潘集区', '0'), ('960', '101', '凤台县', '0'), ('961', '102', '金家庄区', '0'), ('962', '102', '花山区', '0'), ('963', '102', '雨山区', '0'), ('964', '102', '当涂县', '0'), ('965', '103', '杜集区', '0'), ('966', '103', '相山区', '0'), ('967', '103', '烈山区', '0'), ('968', '103', '濉溪县', '0'), ('969', '104', '铜官山区', '0'), ('970', '104', '狮子山区', '0'), ('971', '104', '郊区', '0'), ('972', '104', '铜陵县', '0'), ('973', '105', '迎江区', '0'), ('974', '105', '大观区', '0'), ('975', '105', '郊区', '0'), ('976', '105', '怀宁县', '0'), ('977', '105', '枞阳县', '0'), ('978', '105', '潜山县', '0'), ('979', '105', '太湖县', '0'), ('980', '105', '宿松县', '0'), ('981', '105', '望江县', '0'), ('982', '105', '岳西县', '0'), ('983', '105', '桐城市', '0'), ('984', '106', '屯溪区', '0'), ('985', '106', '黄山区', '0'), ('986', '106', '徽州区', '0'), ('987', '106', '歙县', '0'), ('988', '106', '休宁县', '0'), ('989', '106', '黟县', '0'), ('990', '106', '祁门县', '0'), ('991', '107', '琅琊区', '0'), ('992', '107', '南谯区', '0'), ('993', '107', '来安县', '0'), ('994', '107', '全椒县', '0'), ('995', '107', '定远县', '0'), ('996', '107', '凤阳县', '0'), ('997', '107', '天长市', '0'), ('998', '107', '明光市', '0'), ('999', '108', '颍州区', '0'), ('1000', '108', '颍东区', '0'), ('1001', '108', '颍泉区', '0'), ('1002', '108', '临泉县', '0'), ('1003', '108', '太和县', '0'), ('1004', '108', '阜南县', '0'), ('1005', '108', '颍上县', '0'), ('1006', '108', '界首市', '0'), ('1007', '109', '埇桥区', '0'), ('1008', '109', '砀山县', '0'), ('1009', '109', '萧县', '0'), ('1010', '109', '灵璧县', '0'), ('1011', '109', '泗县', '0'), ('1012', '110', '居巢区', '0'), ('1013', '110', '庐江县', '0'), ('1014', '110', '无为县', '0'), ('1015', '110', '含山县', '0'), ('1016', '110', '和县', '0'), ('1017', '111', '金安区', '0'), ('1018', '111', '裕安区', '0'), ('1019', '111', '寿县', '0'), ('1020', '111', '霍邱县', '0'), ('1021', '111', '舒城县', '0'), ('1022', '111', '金寨县', '0'), ('1023', '111', '霍山县', '0'), ('1024', '112', '谯城区', '0'), ('1025', '112', '涡阳县', '0'), ('1026', '112', '蒙城县', '0'), ('1027', '112', '利辛县', '0'), ('1028', '113', '贵池区', '0'), ('1029', '113', '东至县', '0'), ('1030', '113', '石台县', '0'), ('1031', '113', '青阳县', '0'), ('1032', '114', '宣州区', '0'), ('1033', '114', '郎溪县', '0'), ('1034', '114', '广德县', '0'), ('1035', '114', '泾县', '0'), ('1036', '114', '绩溪县', '0'), ('1037', '114', '旌德县', '0'), ('1038', '114', '宁国市', '0'), ('1039', '115', '鼓楼区', '0'), ('1040', '115', '台江区', '0'), ('1041', '115', '仓山区', '0'), ('1042', '115', '马尾区', '0'), ('1043', '115', '晋安区', '0'), ('1044', '115', '闽侯县', '0'), ('1045', '115', '连江县', '0'), ('1046', '115', '罗源县', '0'), ('1047', '115', '闽清县', '0'), ('1048', '115', '永泰县', '0'), ('1049', '115', '平潭县', '0'), ('1050', '115', '福清市', '0'), ('1051', '115', '长乐市', '0'), ('1052', '116', '思明区', '0'), ('1053', '116', '海沧区', '0'), ('1054', '116', '湖里区', '0'), ('1055', '116', '集美区', '0'), ('1056', '116', '同安区', '0'), ('1057', '116', '翔安区', '0'), ('1058', '117', '城厢区', '0'), ('1059', '117', '涵江区', '0'), ('1060', '117', '荔城区', '0'), ('1061', '117', '秀屿区', '0'), ('1062', '117', '仙游县', '0'), ('1063', '118', '梅列区', '0'), ('1064', '118', '三元区', '0'), ('1065', '118', '明溪县', '0'), ('1066', '118', '清流县', '0'), ('1067', '118', '宁化县', '0'), ('1068', '118', '大田县', '0'), ('1069', '118', '尤溪县', '0'), ('1070', '118', '沙县', '0'), ('1071', '118', '将乐县', '0'), ('1072', '118', '泰宁县', '0'), ('1073', '118', '建宁县', '0'), ('1074', '118', '永安市', '0'), ('1075', '119', '鲤城区', '0'), ('1076', '119', '丰泽区', '0'), ('1077', '119', '洛江区', '0'), ('1078', '119', '泉港区', '0'), ('1079', '119', '惠安县', '0'), ('1080', '119', '安溪县', '0'), ('1081', '119', '永春县', '0'), ('1082', '119', '德化县', '0'), ('1083', '119', '金门县', '0'), ('1084', '119', '石狮市', '0'), ('1085', '119', '晋江市', '0'), ('1086', '119', '南安市', '0'), ('1087', '120', '芗城区', '0'), ('1088', '120', '龙文区', '0'), ('1089', '120', '云霄县', '0'), ('1090', '120', '漳浦县', '0'), ('1091', '120', '诏安县', '0'), ('1092', '120', '长泰县', '0'), ('1093', '120', '东山县', '0'), ('1094', '120', '南靖县', '0'), ('1095', '120', '平和县', '0'), ('1096', '120', '华安县', '0'), ('1097', '120', '龙海市', '0'), ('1098', '121', '延平区', '0'), ('1099', '121', '顺昌县', '0'), ('1100', '121', '浦城县', '0'), ('1101', '121', '光泽县', '0'), ('1102', '121', '松溪县', '0'), ('1103', '121', '政和县', '0'), ('1104', '121', '邵武市', '0'), ('1105', '121', '武夷山市', '0'), ('1106', '121', '建瓯市', '0'), ('1107', '121', '建阳市', '0'), ('1108', '122', '新罗区', '0'), ('1109', '122', '长汀县', '0'), ('1110', '122', '永定县', '0'), ('1111', '122', '上杭县', '0'), ('1112', '122', '武平县', '0'), ('1113', '122', '连城县', '0'), ('1114', '122', '漳平市', '0'), ('1115', '123', '蕉城区', '0'), ('1116', '123', '霞浦县', '0'), ('1117', '123', '古田县', '0'), ('1118', '123', '屏南县', '0'), ('1119', '123', '寿宁县', '0'), ('1120', '123', '周宁县', '0'), ('1121', '123', '柘荣县', '0'), ('1122', '123', '福安市', '0'), ('1123', '123', '福鼎市', '0'), ('1124', '124', '东湖区', '0'), ('1125', '124', '西湖区', '0'), ('1126', '124', '青云谱区', '0'), ('1127', '124', '湾里区', '0'), ('1128', '124', '青山湖区', '0'), ('1129', '124', '南昌县', '0'), ('1130', '124', '新建县', '0'), ('1131', '124', '安义县', '0'), ('1132', '124', '进贤县', '0'), ('1133', '125', '昌江区', '0'), ('1134', '125', '珠山区', '0'), ('1135', '125', '浮梁县', '0'), ('1136', '125', '乐平市', '0'), ('1137', '126', '安源区', '0'), ('1138', '126', '湘东区', '0'), ('1139', '126', '莲花县', '0'), ('1140', '126', '上栗县', '0'), ('1141', '126', '芦溪县', '0'), ('1142', '127', '庐山区', '0'), ('1143', '127', '浔阳区', '0'), ('1144', '127', '九江县', '0'), ('1145', '127', '武宁县', '0'), ('1146', '127', '修水县', '0'), ('1147', '127', '永修县', '0'), ('1148', '127', '德安县', '0'), ('1149', '127', '星子县', '0'), ('1150', '127', '都昌县', '0'), ('1151', '127', '湖口县', '0'), ('1152', '127', '彭泽县', '0'), ('1153', '127', '瑞昌市', '0'), ('1154', '128', '渝水区', '0'), ('1155', '128', '分宜县', '0'), ('1156', '129', '月湖区', '0'), ('1157', '129', '余江县', '0'), ('1158', '129', '贵溪市', '0'), ('1159', '130', '章贡区', '0'), ('1160', '130', '赣县', '0'), ('1161', '130', '信丰县', '0'), ('1162', '130', '大余县', '0'), ('1163', '130', '上犹县', '0'), ('1164', '130', '崇义县', '0'), ('1165', '130', '安远县', '0'), ('1166', '130', '龙南县', '0'), ('1167', '130', '定南县', '0'), ('1168', '130', '全南县', '0'), ('1169', '130', '宁都县', '0'), ('1170', '130', '于都县', '0'), ('1171', '130', '兴国县', '0'), ('1172', '130', '会昌县', '0'), ('1173', '130', '寻乌县', '0'), ('1174', '130', '石城县', '0'), ('1175', '130', '瑞金市', '0'), ('1176', '130', '南康市', '0'), ('1177', '131', '吉州区', '0'), ('1178', '131', '青原区', '0'), ('1179', '131', '吉安县', '0'), ('1180', '131', '吉水县', '0'), ('1181', '131', '峡江县', '0'), ('1182', '131', '新干县', '0'), ('1183', '131', '永丰县', '0'), ('1184', '131', '泰和县', '0'), ('1185', '131', '遂川县', '0'), ('1186', '131', '万安县', '0'), ('1187', '131', '安福县', '0'), ('1188', '131', '永新县', '0'), ('1189', '131', '井冈山市', '0'), ('1190', '132', '袁州区', '0'), ('1191', '132', '奉新县', '0'), ('1192', '132', '万载县', '0'), ('1193', '132', '上高县', '0'), ('1194', '132', '宜丰县', '0'), ('1195', '132', '靖安县', '0'), ('1196', '132', '铜鼓县', '0'), ('1197', '132', '丰城市', '0'), ('1198', '132', '樟树市', '0'), ('1199', '132', '高安市', '0'), ('1200', '133', '临川区', '0'), ('1201', '133', '南城县', '0'), ('1202', '133', '黎川县', '0'), ('1203', '133', '南丰县', '0'), ('1204', '133', '崇仁县', '0'), ('1205', '133', '乐安县', '0'), ('1206', '133', '宜黄县', '0'), ('1207', '133', '金溪县', '0'), ('1208', '133', '资溪县', '0'), ('1209', '133', '东乡县', '0'), ('1210', '133', '广昌县', '0'), ('1211', '134', '信州区', '0'), ('1212', '134', '上饶县', '0'), ('1213', '134', '广丰县', '0'), ('1214', '134', '玉山县', '0'), ('1215', '134', '铅山县', '0'), ('1216', '134', '横峰县', '0'), ('1217', '134', '弋阳县', '0'), ('1218', '134', '余干县', '0'), ('1219', '134', '鄱阳县', '0'), ('1220', '134', '万年县', '0'), ('1221', '134', '婺源县', '0'), ('1222', '134', '德兴市', '0'), ('1223', '135', '历下区', '0'), ('1224', '135', '市中区', '0'), ('1225', '135', '槐荫区', '0'), ('1226', '135', '天桥区', '0'), ('1227', '135', '历城区', '0'), ('1228', '135', '长清区', '0'), ('1229', '135', '平阴县', '0'), ('1230', '135', '济阳县', '0'), ('1231', '135', '商河县', '0'), ('1232', '135', '章丘市', '0'), ('1233', '136', '市南区', '0'), ('1234', '136', '市北区', '0'), ('1235', '136', '四方区', '0'), ('1236', '136', '黄岛区', '0'), ('1237', '136', '崂山区', '0'), ('1238', '136', '李沧区', '0'), ('1239', '136', '城阳区', '0'), ('1240', '136', '胶州市', '0'), ('1241', '136', '即墨市', '0'), ('1242', '136', '平度市', '0'), ('1243', '136', '胶南市', '0'), ('1244', '136', '莱西市', '0'), ('1245', '137', '淄川区', '0'), ('1246', '137', '张店区', '0'), ('1247', '137', '博山区', '0'), ('1248', '137', '临淄区', '0'), ('1249', '137', '周村区', '0'), ('1250', '137', '桓台县', '0'), ('1251', '137', '高青县', '0'), ('1252', '137', '沂源县', '0'), ('1253', '138', '市中区', '0'), ('1254', '138', '薛城区', '0'), ('1255', '138', '峄城区', '0'), ('1256', '138', '台儿庄区', '0'), ('1257', '138', '山亭区', '0'), ('1258', '138', '滕州市', '0'), ('1259', '139', '东营区', '0'), ('1260', '139', '河口区', '0'), ('1261', '139', '垦利县', '0'), ('1262', '139', '利津县', '0'), ('1263', '139', '广饶县', '0'), ('1264', '140', '芝罘区', '0'), ('1265', '140', '福山区', '0'), ('1266', '140', '牟平区', '0'), ('1267', '140', '莱山区', '0'), ('1268', '140', '长岛县', '0'), ('1269', '140', '龙口市', '0'), ('1270', '140', '莱阳市', '0'), ('1271', '140', '莱州市', '0'), ('1272', '140', '蓬莱市', '0'), ('1273', '140', '招远市', '0'), ('1274', '140', '栖霞市', '0'), ('1275', '140', '海阳市', '0'), ('1276', '141', '潍城区', '0'), ('1277', '141', '寒亭区', '0'), ('1278', '141', '坊子区', '0'), ('1279', '141', '奎文区', '0'), ('1280', '141', '临朐县', '0'), ('1281', '141', '昌乐县', '0'), ('1282', '141', '青州市', '0'), ('1283', '141', '诸城市', '0'), ('1284', '141', '寿光市', '0'), ('1285', '141', '安丘市', '0'), ('1286', '141', '高密市', '0'), ('1287', '141', '昌邑市', '0'), ('1288', '142', '市中区', '0'), ('1289', '142', '任城区', '0'), ('1290', '142', '微山县', '0'), ('1291', '142', '鱼台县', '0'), ('1292', '142', '金乡县', '0'), ('1293', '142', '嘉祥县', '0'), ('1294', '142', '汶上县', '0'), ('1295', '142', '泗水县', '0'), ('1296', '142', '梁山县', '0'), ('1297', '142', '曲阜市', '0'), ('1298', '142', '兖州市', '0'), ('1299', '142', '邹城市', '0'), ('1300', '143', '泰山区', '0'), ('1301', '143', '岱岳区', '0'), ('1302', '143', '宁阳县', '0'), ('1303', '143', '东平县', '0'), ('1304', '143', '新泰市', '0'), ('1305', '143', '肥城市', '0'), ('1306', '144', '环翠区', '0'), ('1307', '144', '文登市', '0'), ('1308', '144', '荣成市', '0'), ('1309', '144', '乳山市', '0'), ('1310', '145', '东港区', '0'), ('1311', '145', '岚山区', '0'), ('1312', '145', '五莲县', '0'), ('1313', '145', '莒县', '0'), ('1314', '146', '莱城区', '0'), ('1315', '146', '钢城区', '0'), ('1316', '147', '兰山区', '0'), ('1317', '147', '罗庄区', '0'), ('1318', '147', '河东区', '0'), ('1319', '147', '沂南县', '0'), ('1320', '147', '郯城县', '0'), ('1321', '147', '沂水县', '0'), ('1322', '147', '苍山县', '0'), ('1323', '147', '费县', '0'), ('1324', '147', '平邑县', '0'), ('1325', '147', '莒南县', '0'), ('1326', '147', '蒙阴县', '0'), ('1327', '147', '临沭县', '0'), ('1328', '148', '德城区', '0'), ('1329', '148', '陵县', '0'), ('1330', '148', '宁津县', '0'), ('1331', '148', '庆云县', '0'), ('1332', '148', '临邑县', '0'), ('1333', '148', '齐河县', '0'), ('1334', '148', '平原县', '0'), ('1335', '148', '夏津县', '0'), ('1336', '148', '武城县', '0'), ('1337', '148', '乐陵市', '0'), ('1338', '148', '禹城市', '0'), ('1339', '149', '东昌府区', '0'), ('1340', '149', '阳谷县', '0'), ('1341', '149', '莘县', '0'), ('1342', '149', '茌平县', '0'), ('1343', '149', '东阿县', '0'), ('1344', '149', '冠县', '0'), ('1345', '149', '高唐县', '0'), ('1346', '149', '临清市', '0'), ('1347', '150', '滨城区', '0'), ('1348', '150', '惠民县', '0'), ('1349', '150', '阳信县', '0'), ('1350', '150', '无棣县', '0'), ('1351', '150', '沾化县', '0'), ('1352', '150', '博兴县', '0'), ('1353', '150', '邹平县', '0'), ('1354', '151', '牡丹区', '0'), ('1355', '151', '曹县', '0'), ('1356', '151', '单县', '0'), ('1357', '151', '成武县', '0'), ('1358', '151', '巨野县', '0'), ('1359', '151', '郓城县', '0'), ('1360', '151', '鄄城县', '0'), ('1361', '151', '定陶县', '0'), ('1362', '151', '东明县', '0'), ('1363', '152', '中原区', '0'), ('1364', '152', '二七区', '0'), ('1365', '152', '管城回族区', '0'), ('1366', '152', '金水区', '0'), ('1367', '152', '上街区', '0'), ('1368', '152', '惠济区', '0'), ('1369', '152', '中牟县', '0'), ('1370', '152', '巩义市', '0'), ('1371', '152', '荥阳市', '0'), ('1372', '152', '新密市', '0'), ('1373', '152', '新郑市', '0'), ('1374', '152', '登封市', '0'), ('1375', '153', '龙亭区', '0'), ('1376', '153', '顺河回族区', '0'), ('1377', '153', '鼓楼区', '0'), ('1378', '153', '南关区', '0'), ('1379', '153', '郊区', '0'), ('1380', '153', '杞县', '0'), ('1381', '153', '通许县', '0'), ('1382', '153', '尉氏县', '0'), ('1383', '153', '开封县', '0'), ('1384', '153', '兰考县', '0'), ('1385', '154', '老城区', '0'), ('1386', '154', '西工区', '0'), ('1387', '154', '廛河回族区', '0'), ('1388', '154', '涧西区', '0'), ('1389', '154', '吉利区', '0'), ('1390', '154', '洛龙区', '0'), ('1391', '154', '孟津县', '0'), ('1392', '154', '新安县', '0'), ('1393', '154', '栾川县', '0'), ('1394', '154', '嵩县', '0'), ('1395', '154', '汝阳县', '0'), ('1396', '154', '宜阳县', '0'), ('1397', '154', '洛宁县', '0'), ('1398', '154', '伊川县', '0'), ('1399', '154', '偃师市', '0'), ('1400', '155', '新华区', '0'), ('1401', '155', '卫东区', '0'), ('1402', '155', '石龙区', '0'), ('1403', '155', '湛河区', '0'), ('1404', '155', '宝丰县', '0'), ('1405', '155', '叶县', '0'), ('1406', '155', '鲁山县', '0'), ('1407', '155', '郏县', '0'), ('1408', '155', '舞钢市', '0'), ('1409', '155', '汝州市', '0'), ('1410', '156', '文峰区', '0'), ('1411', '156', '北关区', '0'), ('1412', '156', '殷都区', '0'), ('1413', '156', '龙安区', '0'), ('1414', '156', '安阳县', '0'), ('1415', '156', '汤阴县', '0'), ('1416', '156', '滑县', '0'), ('1417', '156', '内黄县', '0'), ('1418', '156', '林州市', '0'), ('1419', '157', '鹤山区', '0'), ('1420', '157', '山城区', '0'), ('1421', '157', '淇滨区', '0'), ('1422', '157', '浚县', '0'), ('1423', '157', '淇县', '0'), ('1424', '158', '红旗区', '0'), ('1425', '158', '卫滨区', '0'), ('1426', '158', '凤泉区', '0'), ('1427', '158', '牧野区', '0'), ('1428', '158', '新乡县', '0'), ('1429', '158', '获嘉县', '0'), ('1430', '158', '原阳县', '0'), ('1431', '158', '延津县', '0'), ('1432', '158', '封丘县', '0'), ('1433', '158', '长垣县', '0'), ('1434', '158', '卫辉市', '0'), ('1435', '158', '辉县市', '0'), ('1436', '159', '解放区', '0'), ('1437', '159', '中站区', '0'), ('1438', '159', '马村区', '0'), ('1439', '159', '山阳区', '0'), ('1440', '159', '修武县', '0'), ('1441', '159', '博爱县', '0'), ('1442', '159', '武陟县', '0'), ('1443', '159', '温县', '0'), ('1444', '159', '济源市', '0'), ('1445', '159', '沁阳市', '0'), ('1446', '159', '孟州市', '0'), ('1447', '160', '华龙区', '0'), ('1448', '160', '清丰县', '0'), ('1449', '160', '南乐县', '0'), ('1450', '160', '范县', '0'), ('1451', '160', '台前县', '0'), ('1452', '160', '濮阳县', '0'), ('1453', '161', '魏都区', '0'), ('1454', '161', '许昌县', '0'), ('1455', '161', '鄢陵县', '0'), ('1456', '161', '襄城县', '0'), ('1457', '161', '禹州市', '0'), ('1458', '161', '长葛市', '0'), ('1459', '162', '源汇区', '0'), ('1460', '162', '郾城区', '0'), ('1461', '162', '召陵区', '0'), ('1462', '162', '舞阳县', '0'), ('1463', '162', '临颍县', '0'), ('1464', '163', '市辖区', '0'), ('1465', '163', '湖滨区', '0'), ('1466', '163', '渑池县', '0'), ('1467', '163', '陕县', '0'), ('1468', '163', '卢氏县', '0'), ('1469', '163', '义马市', '0'), ('1470', '163', '灵宝市', '0'), ('1471', '164', '宛城区', '0'), ('1472', '164', '卧龙区', '0'), ('1473', '164', '南召县', '0'), ('1474', '164', '方城县', '0'), ('1475', '164', '西峡县', '0'), ('1476', '164', '镇平县', '0'), ('1477', '164', '内乡县', '0'), ('1478', '164', '淅川县', '0'), ('1479', '164', '社旗县', '0'), ('1480', '164', '唐河县', '0'), ('1481', '164', '新野县', '0'), ('1482', '164', '桐柏县', '0'), ('1483', '164', '邓州市', '0'), ('1484', '165', '梁园区', '0'), ('1485', '165', '睢阳区', '0'), ('1486', '165', '民权县', '0'), ('1487', '165', '睢县', '0'), ('1488', '165', '宁陵县', '0'), ('1489', '165', '柘城县', '0'), ('1490', '165', '虞城县', '0'), ('1491', '165', '夏邑县', '0'), ('1492', '165', '永城市', '0'), ('1493', '166', '浉河区', '0'), ('1494', '166', '平桥区', '0'), ('1495', '166', '罗山县', '0'), ('1496', '166', '光山县', '0'), ('1497', '166', '新县', '0'), ('1498', '166', '商城县', '0'), ('1499', '166', '固始县', '0'), ('1500', '166', '潢川县', '0'), ('1501', '166', '淮滨县', '0'), ('1502', '166', '息县', '0'), ('1503', '167', '川汇区', '0'), ('1504', '167', '扶沟县', '0'), ('1505', '167', '西华县', '0'), ('1506', '167', '商水县', '0'), ('1507', '167', '沈丘县', '0'), ('1508', '167', '郸城县', '0'), ('1509', '167', '淮阳县', '0'), ('1510', '167', '太康县', '0'), ('1511', '167', '鹿邑县', '0'), ('1512', '167', '项城市', '0'), ('1513', '168', '驿城区', '0'), ('1514', '168', '西平县', '0'), ('1515', '168', '上蔡县', '0'), ('1516', '168', '平舆县', '0'), ('1517', '168', '正阳县', '0'), ('1518', '168', '确山县', '0'), ('1519', '168', '泌阳县', '0'), ('1520', '168', '汝南县', '0'), ('1521', '168', '遂平县', '0'), ('1522', '168', '新蔡县', '0'), ('1523', '169', '江岸区', '0'), ('1524', '169', '江汉区', '0'), ('1525', '169', '硚口区', '0'), ('1526', '169', '汉阳区', '0'), ('1527', '169', '武昌区', '0'), ('1528', '169', '青山区', '0'), ('1529', '169', '洪山区', '0'), ('1530', '169', '东西湖区', '0'), ('1531', '169', '汉南区', '0'), ('1532', '169', '蔡甸区', '0'), ('1533', '169', '江夏区', '0'), ('1534', '169', '黄陂区', '0'), ('1535', '169', '新洲区', '0'), ('1536', '170', '黄石港区', '0'), ('1537', '170', '西塞山区', '0'), ('1538', '170', '下陆区', '0'), ('1539', '170', '铁山区', '0'), ('1540', '170', '阳新县', '0'), ('1541', '170', '大冶市', '0'), ('1542', '171', '茅箭区', '0'), ('1543', '171', '张湾区', '0'), ('1544', '171', '郧县', '0'), ('1545', '171', '郧西县', '0'), ('1546', '171', '竹山县', '0'), ('1547', '171', '竹溪县', '0'), ('1548', '171', '房县', '0'), ('1549', '171', '丹江口市', '0'), ('1550', '172', '西陵区', '0'), ('1551', '172', '伍家岗区', '0'), ('1552', '172', '点军区', '0'), ('1553', '172', '猇亭区', '0'), ('1554', '172', '夷陵区', '0'), ('1555', '172', '远安县', '0'), ('1556', '172', '兴山县', '0'), ('1557', '172', '秭归县', '0'), ('1558', '172', '长阳土家族自治县', '0'), ('1559', '172', '五峰土家族自治县', '0'), ('1560', '172', '宜都市', '0'), ('1561', '172', '当阳市', '0'), ('1562', '172', '枝江市', '0'), ('1563', '173', '襄城区', '0'), ('1564', '173', '樊城区', '0'), ('1565', '173', '襄阳区', '0'), ('1566', '173', '南漳县', '0'), ('1567', '173', '谷城县', '0'), ('1568', '173', '保康县', '0'), ('1569', '173', '老河口市', '0'), ('1570', '173', '枣阳市', '0'), ('1571', '173', '宜城市', '0'), ('1572', '174', '梁子湖区', '0'), ('1573', '174', '华容区', '0'), ('1574', '174', '鄂城区', '0'), ('1575', '175', '东宝区', '0'), ('1576', '175', '掇刀区', '0'), ('1577', '175', '京山县', '0'), ('1578', '175', '沙洋县', '0'), ('1579', '175', '钟祥市', '0'), ('1580', '176', '孝南区', '0'), ('1581', '176', '孝昌县', '0'), ('1582', '176', '大悟县', '0'), ('1583', '176', '云梦县', '0'), ('1584', '176', '应城市', '0'), ('1585', '176', '安陆市', '0'), ('1586', '176', '汉川市', '0'), ('1587', '177', '沙市区', '0'), ('1588', '177', '荆州区', '0'), ('1589', '177', '公安县', '0'), ('1590', '177', '监利县', '0'), ('1591', '177', '江陵县', '0'), ('1592', '177', '石首市', '0'), ('1593', '177', '洪湖市', '0'), ('1594', '177', '松滋市', '0'), ('1595', '178', '黄州区', '0'), ('1596', '178', '团风县', '0'), ('1597', '178', '红安县', '0'), ('1598', '178', '罗田县', '0'), ('1599', '178', '英山县', '0'), ('1600', '178', '浠水县', '0'), ('1601', '178', '蕲春县', '0'), ('1602', '178', '黄梅县', '0'), ('1603', '178', '麻城市', '0'), ('1604', '178', '武穴市', '0'), ('1605', '179', '咸安区', '0'), ('1606', '179', '嘉鱼县', '0'), ('1607', '179', '通城县', '0'), ('1608', '179', '崇阳县', '0'), ('1609', '179', '通山县', '0'), ('1610', '179', '赤壁市', '0'), ('1611', '180', '曾都区', '0'), ('1612', '180', '广水市', '0'), ('1613', '181', '恩施市', '0'), ('1614', '181', '利川市', '0'), ('1615', '181', '建始县', '0'), ('1616', '181', '巴东县', '0'), ('1617', '181', '宣恩县', '0'), ('1618', '181', '咸丰县', '0'), ('1619', '181', '来凤县', '0'), ('1620', '181', '鹤峰县', '0'), ('1621', '182', '仙桃市', '0'), ('1622', '182', '潜江市', '0'), ('1623', '182', '天门市', '0'), ('1624', '182', '神农架林区', '0'), ('1625', '183', '芙蓉区', '0'), ('1626', '183', '天心区', '0'), ('1627', '183', '岳麓区', '0'), ('1628', '183', '开福区', '0'), ('1629', '183', '雨花区', '0'), ('1630', '183', '长沙县', '0'), ('1631', '183', '望城县', '0'), ('1632', '183', '宁乡县', '0'), ('1633', '183', '浏阳市', '0'), ('1634', '184', '荷塘区', '0'), ('1635', '184', '芦淞区', '0'), ('1636', '184', '石峰区', '0'), ('1637', '184', '天元区', '0'), ('1638', '184', '株洲县', '0'), ('1639', '184', '攸县', '0'), ('1640', '184', '茶陵县', '0'), ('1641', '184', '炎陵县', '0'), ('1642', '184', '醴陵市', '0'), ('1643', '185', '雨湖区', '0'), ('1644', '185', '岳塘区', '0'), ('1645', '185', '湘潭县', '0'), ('1646', '185', '湘乡市', '0'), ('1647', '185', '韶山市', '0'), ('1648', '186', '珠晖区', '0'), ('1649', '186', '雁峰区', '0'), ('1650', '186', '石鼓区', '0'), ('1651', '186', '蒸湘区', '0'), ('1652', '186', '南岳区', '0'), ('1653', '186', '衡阳县', '0'), ('1654', '186', '衡南县', '0'), ('1655', '186', '衡山县', '0'), ('1656', '186', '衡东县', '0'), ('1657', '186', '祁东县', '0'), ('1658', '186', '耒阳市', '0'), ('1659', '186', '常宁市', '0'), ('1660', '187', '双清区', '0'), ('1661', '187', '大祥区', '0'), ('1662', '187', '北塔区', '0'), ('1663', '187', '邵东县', '0'), ('1664', '187', '新邵县', '0'), ('1665', '187', '邵阳县', '0'), ('1666', '187', '隆回县', '0'), ('1667', '187', '洞口县', '0'), ('1668', '187', '绥宁县', '0'), ('1669', '187', '新宁县', '0'), ('1670', '187', '城步苗族自治县', '0'), ('1671', '187', '武冈市', '0'), ('1672', '188', '岳阳楼区', '0'), ('1673', '188', '云溪区', '0'), ('1674', '188', '君山区', '0'), ('1675', '188', '岳阳县', '0'), ('1676', '188', '华容县', '0'), ('1677', '188', '湘阴县', '0'), ('1678', '188', '平江县', '0'), ('1679', '188', '汨罗市', '0'), ('1680', '188', '临湘市', '0'), ('1681', '189', '武陵区', '0'), ('1682', '189', '鼎城区', '0'), ('1683', '189', '安乡县', '0'), ('1684', '189', '汉寿县', '0'), ('1685', '189', '澧县', '0'), ('1686', '189', '临澧县', '0'), ('1687', '189', '桃源县', '0'), ('1688', '189', '石门县', '0'), ('1689', '189', '津市市', '0'), ('1690', '190', '永定区', '0'), ('1691', '190', '武陵源区', '0'), ('1692', '190', '慈利县', '0'), ('1693', '190', '桑植县', '0'), ('1694', '191', '资阳区', '0'), ('1695', '191', '赫山区', '0'), ('1696', '191', '南县', '0'), ('1697', '191', '桃江县', '0'), ('1698', '191', '安化县', '0'), ('1699', '191', '沅江市', '0'), ('1700', '192', '北湖区', '0'), ('1701', '192', '苏仙区', '0'), ('1702', '192', '桂阳县', '0'), ('1703', '192', '宜章县', '0'), ('1704', '192', '永兴县', '0'), ('1705', '192', '嘉禾县', '0'), ('1706', '192', '临武县', '0'), ('1707', '192', '汝城县', '0'), ('1708', '192', '桂东县', '0'), ('1709', '192', '安仁县', '0'), ('1710', '192', '资兴市', '0'), ('1711', '193', '芝山区', '0'), ('1712', '193', '冷水滩区', '0'), ('1713', '193', '祁阳县', '0'), ('1714', '193', '东安县', '0'), ('1715', '193', '双牌县', '0'), ('1716', '193', '道县', '0'), ('1717', '193', '江永县', '0'), ('1718', '193', '宁远县', '0'), ('1719', '193', '蓝山县', '0'), ('1720', '193', '新田县', '0'), ('1721', '193', '江华瑶族自治县', '0'), ('1722', '194', '鹤城区', '0'), ('1723', '194', '中方县', '0'), ('1724', '194', '沅陵县', '0'), ('1725', '194', '辰溪县', '0'), ('1726', '194', '溆浦县', '0'), ('1727', '194', '会同县', '0'), ('1728', '194', '麻阳苗族自治县', '0'), ('1729', '194', '新晃侗族自治县', '0'), ('1730', '194', '芷江侗族自治县', '0'), ('1731', '194', '靖州苗族侗族自治县', '0'), ('1732', '194', '通道侗族自治县', '0'), ('1733', '194', '洪江市', '0'), ('1734', '195', '娄星区', '0'), ('1735', '195', '双峰县', '0'), ('1736', '195', '新化县', '0'), ('1737', '195', '冷水江市', '0'), ('1738', '195', '涟源市', '0'), ('1739', '196', '吉首市', '0'), ('1740', '196', '泸溪县', '0'), ('1741', '196', '凤凰县', '0'), ('1742', '196', '花垣县', '0'), ('1743', '196', '保靖县', '0'), ('1744', '196', '古丈县', '0'), ('1745', '196', '永顺县', '0'), ('1746', '196', '龙山县', '0'), ('1747', '197', '东山区', '0'), ('1748', '197', '荔湾区', '0'), ('1749', '197', '越秀区', '0'), ('1750', '197', '海珠区', '0'), ('1751', '197', '天河区', '0'), ('1752', '197', '芳村区', '0'), ('1753', '197', '白云区', '0'), ('1754', '197', '黄埔区', '0'), ('1755', '197', '番禺区', '0'), ('1756', '197', '花都区', '0'), ('1757', '197', '增城市', '0'), ('1759', '198', '武江区', '0'), ('1760', '198', '浈江区', '0'), ('1761', '198', '曲江区', '0'), ('1762', '198', '始兴县', '0'), ('1763', '198', '仁化县', '0'), ('1764', '198', '翁源县', '0'), ('1765', '198', '乳源瑶族自治县', '0'), ('1766', '198', '新丰县', '0'), ('1767', '198', '乐昌市', '0'), ('1768', '198', '南雄市', '0'), ('1769', '199', '罗湖区', '0'), ('1770', '199', '福田区', '0'), ('1771', '199', '南山区', '0'), ('1772', '199', '宝安区', '0'), ('1773', '199', '龙岗区', '0'), ('1774', '199', '盐田区', '0'), ('1775', '200', '香洲区', '0'), ('1776', '200', '斗门区', '0'), ('1777', '200', '金湾区', '0'), ('1778', '201', '龙湖区', '0'), ('1779', '201', '金平区', '0'), ('1780', '201', '濠江区', '0'), ('1781', '201', '潮阳区', '0'), ('1782', '201', '潮南区', '0'), ('1783', '201', '澄海区', '0'), ('1784', '201', '南澳县', '0'), ('1785', '202', '禅城区', '0'), ('1786', '202', '南海区', '0'), ('1787', '202', '顺德区', '0'), ('1788', '202', '三水区', '0'), ('1789', '202', '高明区', '0'), ('1790', '203', '蓬江区', '0'), ('1791', '203', '江海区', '0'), ('1792', '203', '新会区', '0'), ('1793', '203', '台山市', '0'), ('1794', '203', '开平市', '0'), ('1795', '203', '鹤山市', '0'), ('1796', '203', '恩平市', '0'), ('1797', '204', '赤坎区', '0'), ('1798', '204', '霞山区', '0'), ('1799', '204', '坡头区', '0'), ('1800', '204', '麻章区', '0'), ('1801', '204', '遂溪县', '0'), ('1802', '204', '徐闻县', '0'), ('1803', '204', '廉江市', '0'), ('1804', '204', '雷州市', '0'), ('1805', '204', '吴川市', '0'), ('1806', '205', '茂南区', '0'), ('1807', '205', '茂港区', '0'), ('1808', '205', '电白县', '0'), ('1809', '205', '高州市', '0'), ('1810', '205', '化州市', '0'), ('1811', '205', '信宜市', '0'), ('1812', '206', '端州区', '0'), ('1813', '206', '鼎湖区', '0'), ('1814', '206', '广宁县', '0'), ('1815', '206', '怀集县', '0'), ('1816', '206', '封开县', '0'), ('1817', '206', '德庆县', '0'), ('1818', '206', '高要市', '0'), ('1819', '206', '四会市', '0'), ('1820', '207', '惠城区', '0'), ('1821', '207', '惠阳区', '0'), ('1822', '207', '博罗县', '0'), ('1823', '207', '惠东县', '0'), ('1824', '207', '龙门县', '0'), ('1825', '208', '梅江区', '0'), ('1826', '208', '梅县', '0'), ('1827', '208', '大埔县', '0'), ('1828', '208', '丰顺县', '0'), ('1829', '208', '五华县', '0'), ('1830', '208', '平远县', '0'), ('1831', '208', '蕉岭县', '0'), ('1832', '208', '兴宁市', '0'), ('1833', '209', '城区', '0'), ('1834', '209', '海丰县', '0'), ('1835', '209', '陆河县', '0'), ('1836', '209', '陆丰市', '0'), ('1837', '210', '源城区', '0'), ('1838', '210', '紫金县', '0'), ('1839', '210', '龙川县', '0'), ('1840', '210', '连平县', '0'), ('1841', '210', '和平县', '0'), ('1842', '210', '东源县', '0'), ('1843', '211', '江城区', '0'), ('1844', '211', '阳西县', '0'), ('1845', '211', '阳东县', '0'), ('1846', '211', '阳春市', '0'), ('1847', '212', '清城区', '0'), ('1848', '212', '佛冈县', '0'), ('1849', '212', '阳山县', '0'), ('1850', '212', '连山壮族瑶族自治县', '0'), ('1851', '212', '连南瑶族自治县', '0'), ('1852', '212', '清新县', '0'), ('1853', '212', '英德市', '0'), ('1854', '212', '连州市', '0'), ('1855', '215', '湘桥区', '0'), ('1856', '215', '潮安县', '0'), ('1857', '215', '饶平县', '0'), ('1858', '216', '榕城区', '0'), ('1859', '216', '揭东县', '0'), ('1860', '216', '揭西县', '0'), ('1861', '216', '惠来县', '0'), ('1862', '216', '普宁市', '0'), ('1863', '217', '云城区', '0'), ('1864', '217', '新兴县', '0'), ('1865', '217', '郁南县', '0'), ('1866', '217', '云安县', '0'), ('1867', '217', '罗定市', '0'), ('1868', '218', '兴宁区', '0'), ('1869', '218', '青秀区', '0'), ('1870', '218', '江南区', '0'), ('1871', '218', '西乡塘区', '0'), ('1872', '218', '良庆区', '0'), ('1873', '218', '邕宁区', '0'), ('1874', '218', '武鸣县', '0'), ('1875', '218', '隆安县', '0'), ('1876', '218', '马山县', '0'), ('1877', '218', '上林县', '0'), ('1878', '218', '宾阳县', '0'), ('1879', '218', '横县', '0'), ('1880', '219', '城中区', '0'), ('1881', '219', '鱼峰区', '0'), ('1882', '219', '柳南区', '0'), ('1883', '219', '柳北区', '0'), ('1884', '219', '柳江县', '0'), ('1885', '219', '柳城县', '0'), ('1886', '219', '鹿寨县', '0'), ('1887', '219', '融安县', '0'), ('1888', '219', '融水苗族自治县', '0'), ('1889', '219', '三江侗族自治县', '0'), ('1890', '220', '秀峰区', '0'), ('1891', '220', '叠彩区', '0'), ('1892', '220', '象山区', '0'), ('1893', '220', '七星区', '0'), ('1894', '220', '雁山区', '0'), ('1895', '220', '阳朔县', '0'), ('1896', '220', '临桂县', '0'), ('1897', '220', '灵川县', '0'), ('1898', '220', '全州县', '0'), ('1899', '220', '兴安县', '0'), ('1900', '220', '永福县', '0'), ('1901', '220', '灌阳县', '0'), ('1902', '220', '龙胜各族自治县', '0'), ('1903', '220', '资源县', '0'), ('1904', '220', '平乐县', '0'), ('1905', '220', '荔蒲县', '0'), ('1906', '220', '恭城瑶族自治县', '0'), ('1907', '221', '万秀区', '0'), ('1908', '221', '蝶山区', '0'), ('1909', '221', '长洲区', '0'), ('1910', '221', '苍梧县', '0'), ('1911', '221', '藤县', '0'), ('1912', '221', '蒙山县', '0'), ('1913', '221', '岑溪市', '0'), ('1914', '222', '海城区', '0'), ('1915', '222', '银海区', '0'), ('1916', '222', '铁山港区', '0'), ('1917', '222', '合浦县', '0'), ('1918', '223', '港口区', '0'), ('1919', '223', '防城区', '0'), ('1920', '223', '上思县', '0'), ('1921', '223', '东兴市', '0'), ('1922', '224', '钦南区', '0'), ('1923', '224', '钦北区', '0'), ('1924', '224', '灵山县', '0'), ('1925', '224', '浦北县', '0'), ('1926', '225', '港北区', '0'), ('1927', '225', '港南区', '0'), ('1928', '225', '覃塘区', '0'), ('1929', '225', '平南县', '0'), ('1930', '225', '桂平市', '0'), ('1931', '226', '玉州区', '0'), ('1932', '226', '容县', '0'), ('1933', '226', '陆川县', '0'), ('1934', '226', '博白县', '0'), ('1935', '226', '兴业县', '0'), ('1936', '226', '北流市', '0'), ('1937', '227', '右江区', '0'), ('1938', '227', '田阳县', '0'), ('1939', '227', '田东县', '0'), ('1940', '227', '平果县', '0'), ('1941', '227', '德保县', '0'), ('1942', '227', '靖西县', '0'), ('1943', '227', '那坡县', '0'), ('1944', '227', '凌云县', '0'), ('1945', '227', '乐业县', '0'), ('1946', '227', '田林县', '0'), ('1947', '227', '西林县', '0'), ('1948', '227', '隆林各族自治县', '0'), ('1949', '228', '八步区', '0'), ('1950', '228', '昭平县', '0'), ('1951', '228', '钟山县', '0'), ('1952', '228', '富川瑶族自治县', '0'), ('1953', '229', '金城江区', '0'), ('1954', '229', '南丹县', '0'), ('1955', '229', '天峨县', '0'), ('1956', '229', '凤山县', '0'), ('1957', '229', '东兰县', '0'), ('1958', '229', '罗城仫佬族自治县', '0'), ('1959', '229', '环江毛南族自治县', '0'), ('1960', '229', '巴马瑶族自治县', '0'), ('1961', '229', '都安瑶族自治县', '0'), ('1962', '229', '大化瑶族自治县', '0'), ('1963', '229', '宜州市', '0'), ('1964', '230', '兴宾区', '0'), ('1965', '230', '忻城县', '0'), ('1966', '230', '象州县', '0'), ('1967', '230', '武宣县', '0'), ('1968', '230', '金秀瑶族自治县', '0'), ('1969', '230', '合山市', '0'), ('1970', '231', '江洲区', '0'), ('1971', '231', '扶绥县', '0'), ('1972', '231', '宁明县', '0'), ('1973', '231', '龙州县', '0'), ('1974', '231', '大新县', '0'), ('1975', '231', '天等县', '0'), ('1976', '231', '凭祥市', '0'), ('1977', '232', '秀英区', '0'), ('1978', '232', '龙华区', '0'), ('1979', '232', '琼山区', '0'), ('1980', '232', '美兰区', '0'), ('1981', '233', '五指山市', '0'), ('1982', '233', '琼海市', '0'), ('1983', '233', '儋州市', '0'), ('1984', '233', '文昌市', '0'), ('1985', '233', '万宁市', '0'), ('1986', '233', '东方市', '0'), ('1987', '233', '定安县', '0'), ('1988', '233', '屯昌县', '0'), ('1989', '233', '澄迈县', '0'), ('1990', '233', '临高县', '0'), ('1991', '233', '白沙黎族自治县', '0'), ('1992', '233', '昌江黎族自治县', '0'), ('1993', '233', '乐东黎族自治县', '0'), ('1994', '233', '陵水黎族自治县', '0'), ('1995', '233', '保亭黎族苗族自治县', '0'), ('1996', '233', '琼中黎族苗族自治县', '0'), ('1997', '233', '西沙群岛', '0'), ('1998', '233', '南沙群岛', '0'), ('1999', '233', '中沙群岛的岛礁及其海域', '0'), ('2000', '234', '万州区', '0'), ('2001', '234', '涪陵区', '0'), ('2002', '234', '渝中区', '0'), ('2003', '234', '大渡口区', '0'), ('2004', '234', '江北区', '0'), ('2005', '234', '沙坪坝区', '0'), ('2006', '234', '九龙坡区', '0'), ('2007', '234', '南岸区', '0'), ('2008', '234', '北碚区', '0'), ('2009', '234', '万盛区', '0'), ('2010', '234', '双桥区', '0'), ('2011', '234', '渝北区', '0'), ('2012', '234', '巴南区', '0'), ('2013', '234', '黔江区', '0'), ('2014', '234', '长寿区', '0'), ('2015', '234', '綦江县', '0'), ('2016', '234', '潼南县', '0'), ('2017', '234', '铜梁县', '0'), ('2018', '234', '大足县', '0'), ('2019', '234', '荣昌县', '0'), ('2020', '234', '璧山县', '0'), ('2021', '234', '梁平县', '0'), ('2022', '234', '城口县', '0'), ('2023', '234', '丰都县', '0'), ('2024', '234', '垫江县', '0'), ('2025', '234', '武隆县', '0'), ('2026', '234', '忠县', '0'), ('2027', '234', '开县', '0'), ('2028', '234', '云阳县', '0'), ('2029', '234', '奉节县', '0'), ('2030', '234', '巫山县', '0'), ('2031', '234', '巫溪县', '0'), ('2032', '234', '石柱土家族自治县', '0'), ('2033', '234', '秀山土家族苗族自治县', '0'), ('2034', '234', '酉阳土家族苗族自治县', '0'), ('2035', '234', '彭水苗族土家族自治县', '0'), ('2036', '234', '江津市', '0'), ('2037', '234', '合川市', '0'), ('2038', '234', '永川市', '0'), ('2039', '234', '南川市', '0'), ('2040', '235', '锦江区', '0'), ('2041', '235', '青羊区', '0'), ('2042', '235', '金牛区', '0'), ('2043', '235', '武侯区', '0'), ('2044', '235', '成华区', '0'), ('2045', '235', '龙泉驿区', '0'), ('2046', '235', '青白江区', '0'), ('2047', '235', '新都区', '0'), ('2048', '235', '温江区', '0'), ('2049', '235', '金堂县', '0'), ('2050', '235', '双流县', '0'), ('2051', '235', '郫县', '0'), ('2052', '235', '大邑县', '0'), ('2053', '235', '蒲江县', '0'), ('2054', '235', '新津县', '0'), ('2055', '235', '都江堰市', '0'), ('2056', '235', '彭州市', '0'), ('2057', '235', '邛崃市', '0'), ('2058', '235', '崇州市', '0'), ('2059', '236', '自流井区', '0'), ('2060', '236', '贡井区', '0'), ('2061', '236', '大安区', '0'), ('2062', '236', '沿滩区', '0'), ('2063', '236', '荣县', '0'), ('2064', '236', '富顺县', '0'), ('2065', '237', '东区', '0'), ('2066', '237', '西区', '0'), ('2067', '237', '仁和区', '0'), ('2068', '237', '米易县', '0'), ('2069', '237', '盐边县', '0'), ('2070', '238', '江阳区', '0'), ('2071', '238', '纳溪区', '0'), ('2072', '238', '龙马潭区', '0'), ('2073', '238', '泸县', '0'), ('2074', '238', '合江县', '0'), ('2075', '238', '叙永县', '0'), ('2076', '238', '古蔺县', '0'), ('2077', '239', '旌阳区', '0'), ('2078', '239', '中江县', '0'), ('2079', '239', '罗江县', '0'), ('2080', '239', '广汉市', '0'), ('2081', '239', '什邡市', '0'), ('2082', '239', '绵竹市', '0'), ('2083', '240', '涪城区', '0'), ('2084', '240', '游仙区', '0'), ('2085', '240', '三台县', '0'), ('2086', '240', '盐亭县', '0'), ('2087', '240', '安县', '0'), ('2088', '240', '梓潼县', '0'), ('2089', '240', '北川羌族自治县', '0'), ('2090', '240', '平武县', '0'), ('2091', '240', '江油市', '0'), ('2092', '241', '市中区', '0'), ('2093', '241', '元坝区', '0'), ('2094', '241', '朝天区', '0'), ('2095', '241', '旺苍县', '0'), ('2096', '241', '青川县', '0'), ('2097', '241', '剑阁县', '0'), ('2098', '241', '苍溪县', '0'), ('2099', '242', '船山区', '0'), ('2100', '242', '安居区', '0'), ('2101', '242', '蓬溪县', '0'), ('2102', '242', '射洪县', '0'), ('2103', '242', '大英县', '0'), ('2104', '243', '市中区', '0'), ('2105', '243', '东兴区', '0'), ('2106', '243', '威远县', '0'), ('2107', '243', '资中县', '0'), ('2108', '243', '隆昌县', '0'), ('2109', '244', '市中区', '0'), ('2110', '244', '沙湾区', '0'), ('2111', '244', '五通桥区', '0'), ('2112', '244', '金口河区', '0'), ('2113', '244', '犍为县', '0'), ('2114', '244', '井研县', '0'), ('2115', '244', '夹江县', '0'), ('2116', '244', '沐川县', '0'), ('2117', '244', '峨边彝族自治县', '0'), ('2118', '244', '马边彝族自治县', '0'), ('2119', '244', '峨眉山市', '0'), ('2120', '245', '顺庆区', '0'), ('2121', '245', '高坪区', '0'), ('2122', '245', '嘉陵区', '0'), ('2123', '245', '南部县', '0'), ('2124', '245', '营山县', '0'), ('2125', '245', '蓬安县', '0'), ('2126', '245', '仪陇县', '0'), ('2127', '245', '西充县', '0'), ('2128', '245', '阆中市', '0'), ('2129', '246', '东坡区', '0'), ('2130', '246', '仁寿县', '0'), ('2131', '246', '彭山县', '0'), ('2132', '246', '洪雅县', '0'), ('2133', '246', '丹棱县', '0'), ('2134', '246', '青神县', '0'), ('2135', '247', '翠屏区', '0'), ('2136', '247', '宜宾县', '0'), ('2137', '247', '南溪县', '0'), ('2138', '247', '江安县', '0'), ('2139', '247', '长宁县', '0'), ('2140', '247', '高县', '0'), ('2141', '247', '珙县', '0'), ('2142', '247', '筠连县', '0'), ('2143', '247', '兴文县', '0'), ('2144', '247', '屏山县', '0'), ('2145', '248', '广安区', '0'), ('2146', '248', '岳池县', '0'), ('2147', '248', '武胜县', '0'), ('2148', '248', '邻水县', '0'), ('2149', '248', '华蓥市', '0'), ('2150', '249', '通川区', '0'), ('2151', '249', '达县', '0'), ('2152', '249', '宣汉县', '0'), ('2153', '249', '开江县', '0'), ('2154', '249', '大竹县', '0'), ('2155', '249', '渠县', '0'), ('2156', '249', '万源市', '0'), ('2157', '250', '雨城区', '0'), ('2158', '250', '名山县', '0'), ('2159', '250', '荥经县', '0'), ('2160', '250', '汉源县', '0'), ('2161', '250', '石棉县', '0'), ('2162', '250', '天全县', '0'), ('2163', '250', '芦山县', '0'), ('2164', '250', '宝兴县', '0'), ('2165', '251', '巴州区', '0'), ('2166', '251', '通江县', '0'), ('2167', '251', '南江县', '0'), ('2168', '251', '平昌县', '0'), ('2169', '252', '雁江区', '0'), ('2170', '252', '安岳县', '0'), ('2171', '252', '乐至县', '0'), ('2172', '252', '简阳市', '0'), ('2173', '253', '汶川县', '0'), ('2174', '253', '理县', '0'), ('2175', '253', '茂县', '0'), ('2176', '253', '松潘县', '0'), ('2177', '253', '九寨沟县', '0'), ('2178', '253', '金川县', '0'), ('2179', '253', '小金县', '0'), ('2180', '253', '黑水县', '0'), ('2181', '253', '马尔康县', '0'), ('2182', '253', '壤塘县', '0'), ('2183', '253', '阿坝县', '0'), ('2184', '253', '若尔盖县', '0'), ('2185', '253', '红原县', '0'), ('2186', '254', '康定县', '0'), ('2187', '254', '泸定县', '0'), ('2188', '254', '丹巴县', '0'), ('2189', '254', '九龙县', '0'), ('2190', '254', '雅江县', '0'), ('2191', '254', '道孚县', '0'), ('2192', '254', '炉霍县', '0'), ('2193', '254', '甘孜县', '0'), ('2194', '254', '新龙县', '0'), ('2195', '254', '德格县', '0'), ('2196', '254', '白玉县', '0'), ('2197', '254', '石渠县', '0'), ('2198', '254', '色达县', '0'), ('2199', '254', '理塘县', '0'), ('2200', '254', '巴塘县', '0'), ('2201', '254', '乡城县', '0'), ('2202', '254', '稻城县', '0'), ('2203', '254', '得荣县', '0'), ('2204', '255', '西昌市', '0'), ('2205', '255', '木里藏族自治县', '0'), ('2206', '255', '盐源县', '0'), ('2207', '255', '德昌县', '0'), ('2208', '255', '会理县', '0'), ('2209', '255', '会东县', '0'), ('2210', '255', '宁南县', '0'), ('2211', '255', '普格县', '0'), ('2212', '255', '布拖县', '0'), ('2213', '255', '金阳县', '0'), ('2214', '255', '昭觉县', '0'), ('2215', '255', '喜德县', '0'), ('2216', '255', '冕宁县', '0'), ('2217', '255', '越西县', '0'), ('2218', '255', '甘洛县', '0'), ('2219', '255', '美姑县', '0'), ('2220', '255', '雷波县', '0'), ('2221', '256', '南明区', '0'), ('2222', '256', '云岩区', '0'), ('2223', '256', '花溪区', '0'), ('2224', '256', '乌当区', '0'), ('2225', '256', '白云区', '0'), ('2226', '256', '小河区', '0'), ('2227', '256', '开阳县', '0'), ('2228', '256', '息烽县', '0'), ('2229', '256', '修文县', '0'), ('2230', '256', '清镇市', '0'), ('2231', '257', '钟山区', '0'), ('2232', '257', '六枝特区', '0'), ('2233', '257', '水城县', '0'), ('2234', '257', '盘县', '0'), ('2235', '258', '红花岗区', '0'), ('2236', '258', '汇川区', '0'), ('2237', '258', '遵义县', '0'), ('2238', '258', '桐梓县', '0'), ('2239', '258', '绥阳县', '0'), ('2240', '258', '正安县', '0'), ('2241', '258', '道真仡佬族苗族自治县', '0'), ('2242', '258', '务川仡佬族苗族自治县', '0'), ('2243', '258', '凤冈县', '0'), ('2244', '258', '湄潭县', '0'), ('2245', '258', '余庆县', '0'), ('2246', '258', '习水县', '0'), ('2247', '258', '赤水市', '0'), ('2248', '258', '仁怀市', '0'), ('2249', '259', '西秀区', '0'), ('2250', '259', '平坝县', '0'), ('2251', '259', '普定县', '0'), ('2252', '259', '镇宁布依族苗族自治县', '0'), ('2253', '259', '关岭布依族苗族自治县', '0'), ('2254', '259', '紫云苗族布依族自治县', '0'), ('2255', '260', '铜仁市', '0'), ('2256', '260', '江口县', '0'), ('2257', '260', '玉屏侗族自治县', '0'), ('2258', '260', '石阡县', '0'), ('2259', '260', '思南县', '0'), ('2260', '260', '印江土家族苗族自治县', '0'), ('2261', '260', '德江县', '0'), ('2262', '260', '沿河土家族自治县', '0'), ('2263', '260', '松桃苗族自治县', '0'), ('2264', '260', '万山特区', '0'), ('2265', '261', '兴义市', '0'), ('2266', '261', '兴仁县', '0'), ('2267', '261', '普安县', '0'), ('2268', '261', '晴隆县', '0'), ('2269', '261', '贞丰县', '0'), ('2270', '261', '望谟县', '0'), ('2271', '261', '册亨县', '0'), ('2272', '261', '安龙县', '0'), ('2273', '262', '毕节市', '0'), ('2274', '262', '大方县', '0'), ('2275', '262', '黔西县', '0'), ('2276', '262', '金沙县', '0'), ('2277', '262', '织金县', '0'), ('2278', '262', '纳雍县', '0'), ('2279', '262', '威宁彝族回族苗族自治县', '0'), ('2280', '262', '赫章县', '0'), ('2281', '263', '凯里市', '0'), ('2282', '263', '黄平县', '0'), ('2283', '263', '施秉县', '0'), ('2284', '263', '三穗县', '0'), ('2285', '263', '镇远县', '0'), ('2286', '263', '岑巩县', '0'), ('2287', '263', '天柱县', '0'), ('2288', '263', '锦屏县', '0'), ('2289', '263', '剑河县', '0'), ('2290', '263', '台江县', '0'), ('2291', '263', '黎平县', '0'), ('2292', '263', '榕江县', '0'), ('2293', '263', '从江县', '0'), ('2294', '263', '雷山县', '0'), ('2295', '263', '麻江县', '0'), ('2296', '263', '丹寨县', '0'), ('2297', '264', '都匀市', '0'), ('2298', '264', '福泉市', '0'), ('2299', '264', '荔波县', '0'), ('2300', '264', '贵定县', '0'), ('2301', '264', '瓮安县', '0'), ('2302', '264', '独山县', '0'), ('2303', '264', '平塘县', '0'), ('2304', '264', '罗甸县', '0'), ('2305', '264', '长顺县', '0'), ('2306', '264', '龙里县', '0'), ('2307', '264', '惠水县', '0'), ('2308', '264', '三都水族自治县', '0'), ('2309', '265', '五华区', '0'), ('2310', '265', '盘龙区', '0'), ('2311', '265', '官渡区', '0'), ('2312', '265', '西山区', '0'), ('2313', '265', '东川区', '0'), ('2314', '265', '呈贡县', '0'), ('2315', '265', '晋宁县', '0'), ('2316', '265', '富民县', '0'), ('2317', '265', '宜良县', '0'), ('2318', '265', '石林彝族自治县', '0'), ('2319', '265', '嵩明县', '0'), ('2320', '265', '禄劝彝族苗族自治县', '0'), ('2321', '265', '寻甸回族彝族自治县', '0');
INSERT INTO `sys_district` VALUES ('2322', '265', '安宁市', '0'), ('2323', '266', '麒麟区', '0'), ('2324', '266', '马龙县', '0'), ('2325', '266', '陆良县', '0'), ('2326', '266', '师宗县', '0'), ('2327', '266', '罗平县', '0'), ('2328', '266', '富源县', '0'), ('2329', '266', '会泽县', '0'), ('2330', '266', '沾益县', '0'), ('2331', '266', '宣威市', '0'), ('2332', '267', '红塔区', '0'), ('2333', '267', '江川县', '0'), ('2334', '267', '澄江县', '0'), ('2335', '267', '通海县', '0'), ('2336', '267', '华宁县', '0'), ('2337', '267', '易门县', '0'), ('2338', '267', '峨山彝族自治县', '0'), ('2339', '267', '新平彝族傣族自治县', '0'), ('2340', '267', '元江哈尼族彝族傣族自治县', '0'), ('2341', '268', '隆阳区', '0'), ('2342', '268', '施甸县', '0'), ('2343', '268', '腾冲县', '0'), ('2344', '268', '龙陵县', '0'), ('2345', '268', '昌宁县', '0'), ('2346', '269', '昭阳区', '0'), ('2347', '269', '鲁甸县', '0'), ('2348', '269', '巧家县', '0'), ('2349', '269', '盐津县', '0'), ('2350', '269', '大关县', '0'), ('2351', '269', '永善县', '0'), ('2352', '269', '绥江县', '0'), ('2353', '269', '镇雄县', '0'), ('2354', '269', '彝良县', '0'), ('2355', '269', '威信县', '0'), ('2356', '269', '水富县', '0'), ('2357', '270', '古城区', '0'), ('2358', '270', '玉龙纳西族自治县', '0'), ('2359', '270', '永胜县', '0'), ('2360', '270', '华坪县', '0'), ('2361', '270', '宁蒗彝族自治县', '0'), ('2362', '271', '翠云区', '0'), ('2363', '271', '普洱哈尼族彝族自治县', '0'), ('2364', '271', '墨江哈尼族自治县', '0'), ('2365', '271', '景东彝族自治县', '0'), ('2366', '271', '景谷傣族彝族自治县', '0'), ('2367', '271', '镇沅彝族哈尼族拉祜族自治县', '0'), ('2368', '271', '江城哈尼族彝族自治县', '0'), ('2369', '271', '孟连傣族拉祜族佤族自治县', '0'), ('2370', '271', '澜沧拉祜族自治县', '0'), ('2371', '271', '西盟佤族自治县', '0'), ('2372', '272', '临翔区', '0'), ('2373', '272', '凤庆县', '0'), ('2374', '272', '云县', '0'), ('2375', '272', '永德县', '0'), ('2376', '272', '镇康县', '0'), ('2377', '272', '双江拉祜族佤族布朗族傣族自治县', '0'), ('2378', '272', '耿马傣族佤族自治县', '0'), ('2379', '272', '沧源佤族自治县', '0'), ('2380', '273', '楚雄市', '0'), ('2381', '273', '双柏县', '0'), ('2382', '273', '牟定县', '0'), ('2383', '273', '南华县', '0'), ('2384', '273', '姚安县', '0'), ('2385', '273', '大姚县', '0'), ('2386', '273', '永仁县', '0'), ('2387', '273', '元谋县', '0'), ('2388', '273', '武定县', '0'), ('2389', '273', '禄丰县', '0'), ('2390', '274', '个旧市', '0'), ('2391', '274', '开远市', '0'), ('2392', '274', '蒙自县', '0'), ('2393', '274', '屏边苗族自治县', '0'), ('2394', '274', '建水县', '0'), ('2395', '274', '石屏县', '0'), ('2396', '274', '弥勒县', '0'), ('2397', '274', '泸西县', '0'), ('2398', '274', '元阳县', '0'), ('2399', '274', '红河县', '0'), ('2400', '274', '金平苗族瑶族傣族自治县', '0'), ('2401', '274', '绿春县', '0'), ('2402', '274', '河口瑶族自治县', '0'), ('2403', '275', '文山县', '0'), ('2404', '275', '砚山县', '0'), ('2405', '275', '西畴县', '0'), ('2406', '275', '麻栗坡县', '0'), ('2407', '275', '马关县', '0'), ('2408', '275', '丘北县', '0'), ('2409', '275', '广南县', '0'), ('2410', '275', '富宁县', '0'), ('2411', '276', '景洪市', '0'), ('2412', '276', '勐海县', '0'), ('2413', '276', '勐腊县', '0'), ('2414', '277', '大理市', '0'), ('2415', '277', '漾濞彝族自治县', '0'), ('2416', '277', '祥云县', '0'), ('2417', '277', '宾川县', '0'), ('2418', '277', '弥渡县', '0'), ('2419', '277', '南涧彝族自治县', '0'), ('2420', '277', '巍山彝族回族自治县', '0'), ('2421', '277', '永平县', '0'), ('2422', '277', '云龙县', '0'), ('2423', '277', '洱源县', '0'), ('2424', '277', '剑川县', '0'), ('2425', '277', '鹤庆县', '0'), ('2426', '278', '瑞丽市', '0'), ('2427', '278', '潞西市', '0'), ('2428', '278', '梁河县', '0'), ('2429', '278', '盈江县', '0'), ('2430', '278', '陇川县', '0'), ('2431', '279', '泸水县', '0'), ('2432', '279', '福贡县', '0'), ('2433', '279', '贡山独龙族怒族自治县', '0'), ('2434', '279', '兰坪白族普米族自治县', '0'), ('2435', '280', '香格里拉县', '0'), ('2436', '280', '德钦县', '0'), ('2437', '280', '维西傈僳族自治县', '0'), ('2438', '281', '城关区', '0'), ('2439', '281', '林周县', '0'), ('2440', '281', '当雄县', '0'), ('2441', '281', '尼木县', '0'), ('2442', '281', '曲水县', '0'), ('2443', '281', '堆龙德庆县', '0'), ('2444', '281', '达孜县', '0'), ('2445', '281', '墨竹工卡县', '0'), ('2446', '282', '昌都县', '0'), ('2447', '282', '江达县', '0'), ('2448', '282', '贡觉县', '0'), ('2449', '282', '类乌齐县', '0'), ('2450', '282', '丁青县', '0'), ('2451', '282', '察雅县', '0'), ('2452', '282', '八宿县', '0'), ('2453', '282', '左贡县', '0'), ('2454', '282', '芒康县', '0'), ('2455', '282', '洛隆县', '0'), ('2456', '282', '边坝县', '0'), ('2457', '283', '乃东县', '0'), ('2458', '283', '扎囊县', '0'), ('2459', '283', '贡嘎县', '0'), ('2460', '283', '桑日县', '0'), ('2461', '283', '琼结县', '0'), ('2462', '283', '曲松县', '0'), ('2463', '283', '措美县', '0'), ('2464', '283', '洛扎县', '0'), ('2465', '283', '加查县', '0'), ('2466', '283', '隆子县', '0'), ('2467', '283', '错那县', '0'), ('2468', '283', '浪卡子县', '0'), ('2469', '284', '日喀则市', '0'), ('2470', '284', '南木林县', '0'), ('2471', '284', '江孜县', '0'), ('2472', '284', '定日县', '0'), ('2473', '284', '萨迦县', '0'), ('2474', '284', '拉孜县', '0'), ('2475', '284', '昂仁县', '0'), ('2476', '284', '谢通门县', '0'), ('2477', '284', '白朗县', '0'), ('2478', '284', '仁布县', '0'), ('2479', '284', '康马县', '0'), ('2480', '284', '定结县', '0'), ('2481', '284', '仲巴县', '0'), ('2482', '284', '亚东县', '0'), ('2483', '284', '吉隆县', '0'), ('2484', '284', '聂拉木县', '0'), ('2485', '284', '萨嘎县', '0'), ('2486', '284', '岗巴县', '0'), ('2487', '285', '那曲县', '0'), ('2488', '285', '嘉黎县', '0'), ('2489', '285', '比如县', '0'), ('2490', '285', '聂荣县', '0'), ('2491', '285', '安多县', '0'), ('2492', '285', '申扎县', '0'), ('2493', '285', '索县', '0'), ('2494', '285', '班戈县', '0'), ('2495', '285', '巴青县', '0'), ('2496', '285', '尼玛县', '0'), ('2497', '286', '普兰县', '0'), ('2498', '286', '札达县', '0'), ('2499', '286', '噶尔县', '0'), ('2500', '286', '日土县', '0'), ('2501', '286', '革吉县', '0'), ('2502', '286', '改则县', '0'), ('2503', '286', '措勤县', '0'), ('2504', '287', '林芝县', '0'), ('2505', '287', '工布江达县', '0'), ('2506', '287', '米林县', '0'), ('2507', '287', '墨脱县', '0'), ('2508', '287', '波密县', '0'), ('2509', '287', '察隅县', '0'), ('2510', '287', '朗县', '0'), ('2511', '288', '新城区', '0'), ('2512', '288', '碑林区', '0'), ('2513', '288', '莲湖区', '0'), ('2514', '288', '灞桥区', '0'), ('2515', '288', '未央区', '0'), ('2516', '288', '雁塔区', '0'), ('2517', '288', '阎良区', '0'), ('2518', '288', '临潼区', '0'), ('2519', '288', '长安区', '0'), ('2520', '288', '蓝田县', '0'), ('2521', '288', '周至县', '0'), ('2522', '288', '户县', '0'), ('2523', '288', '高陵县', '0'), ('2524', '289', '王益区', '0'), ('2525', '289', '印台区', '0'), ('2526', '289', '耀州区', '0'), ('2527', '289', '宜君县', '0'), ('2528', '290', '渭滨区', '0'), ('2529', '290', '金台区', '0'), ('2530', '290', '陈仓区', '0'), ('2531', '290', '凤翔县', '0'), ('2532', '290', '岐山县', '0'), ('2533', '290', '扶风县', '0'), ('2534', '290', '眉县', '0'), ('2535', '290', '陇县', '0'), ('2536', '290', '千阳县', '0'), ('2537', '290', '麟游县', '0'), ('2538', '290', '凤县', '0'), ('2539', '290', '太白县', '0'), ('2540', '291', '秦都区', '0'), ('2541', '291', '杨凌区', '0'), ('2542', '291', '渭城区', '0'), ('2543', '291', '三原县', '0'), ('2544', '291', '泾阳县', '0'), ('2545', '291', '乾县', '0'), ('2546', '291', '礼泉县', '0'), ('2547', '291', '永寿县', '0'), ('2548', '291', '彬县', '0'), ('2549', '291', '长武县', '0'), ('2550', '291', '旬邑县', '0'), ('2551', '291', '淳化县', '0'), ('2552', '291', '武功县', '0'), ('2553', '291', '兴平市', '0'), ('2554', '292', '临渭区', '0'), ('2555', '292', '华县', '0'), ('2556', '292', '潼关县', '0'), ('2557', '292', '大荔县', '0'), ('2558', '292', '合阳县', '0'), ('2559', '292', '澄城县', '0'), ('2560', '292', '蒲城县', '0'), ('2561', '292', '白水县', '0'), ('2562', '292', '富平县', '0'), ('2563', '292', '韩城市', '0'), ('2564', '292', '华阴市', '0'), ('2565', '293', '宝塔区', '0'), ('2566', '293', '延长县', '0'), ('2567', '293', '延川县', '0'), ('2568', '293', '子长县', '0'), ('2569', '293', '安塞县', '0'), ('2570', '293', '志丹县', '0'), ('2571', '293', '吴旗县', '0'), ('2572', '293', '甘泉县', '0'), ('2573', '293', '富县', '0'), ('2574', '293', '洛川县', '0'), ('2575', '293', '宜川县', '0'), ('2576', '293', '黄龙县', '0'), ('2577', '293', '黄陵县', '0'), ('2578', '294', '汉台区', '0'), ('2579', '294', '南郑县', '0'), ('2580', '294', '城固县', '0'), ('2581', '294', '洋县', '0'), ('2582', '294', '西乡县', '0'), ('2583', '294', '勉县', '0'), ('2584', '294', '宁强县', '0'), ('2585', '294', '略阳县', '0'), ('2586', '294', '镇巴县', '0'), ('2587', '294', '留坝县', '0'), ('2588', '294', '佛坪县', '0'), ('2589', '295', '榆阳区', '0'), ('2590', '295', '神木县', '0'), ('2591', '295', '府谷县', '0'), ('2592', '295', '横山县', '0'), ('2593', '295', '靖边县', '0'), ('2594', '295', '定边县', '0'), ('2595', '295', '绥德县', '0'), ('2596', '295', '米脂县', '0'), ('2597', '295', '佳县', '0'), ('2598', '295', '吴堡县', '0'), ('2599', '295', '清涧县', '0'), ('2600', '295', '子洲县', '0'), ('2601', '296', '汉滨区', '0'), ('2602', '296', '汉阴县', '0'), ('2603', '296', '石泉县', '0'), ('2604', '296', '宁陕县', '0'), ('2605', '296', '紫阳县', '0'), ('2606', '296', '岚皋县', '0'), ('2607', '296', '平利县', '0'), ('2608', '296', '镇坪县', '0'), ('2609', '296', '旬阳县', '0'), ('2610', '296', '白河县', '0'), ('2611', '297', '商州区', '0'), ('2612', '297', '洛南县', '0'), ('2613', '297', '丹凤县', '0'), ('2614', '297', '商南县', '0'), ('2615', '297', '山阳县', '0'), ('2616', '297', '镇安县', '0'), ('2617', '297', '柞水县', '0'), ('2618', '298', '城关区', '0'), ('2619', '298', '七里河区', '0'), ('2620', '298', '西固区', '0'), ('2621', '298', '安宁区', '0'), ('2622', '298', '红古区', '0'), ('2623', '298', '永登县', '0'), ('2624', '298', '皋兰县', '0'), ('2625', '298', '榆中县', '0'), ('2626', '300', '金川区', '0'), ('2627', '300', '永昌县', '0'), ('2628', '301', '白银区', '0'), ('2629', '301', '平川区', '0'), ('2630', '301', '靖远县', '0'), ('2631', '301', '会宁县', '0'), ('2632', '301', '景泰县', '0'), ('2633', '302', '秦城区', '0'), ('2634', '302', '北道区', '0'), ('2635', '302', '清水县', '0'), ('2636', '302', '秦安县', '0'), ('2637', '302', '甘谷县', '0'), ('2638', '302', '武山县', '0'), ('2639', '302', '张家川回族自治县', '0'), ('2640', '303', '凉州区', '0'), ('2641', '303', '民勤县', '0'), ('2642', '303', '古浪县', '0'), ('2643', '303', '天祝藏族自治县', '0'), ('2644', '304', '甘州区', '0'), ('2645', '304', '肃南裕固族自治县', '0'), ('2646', '304', '民乐县', '0'), ('2647', '304', '临泽县', '0'), ('2648', '304', '高台县', '0'), ('2649', '304', '山丹县', '0'), ('2650', '305', '崆峒区', '0'), ('2651', '305', '泾川县', '0'), ('2652', '305', '灵台县', '0'), ('2653', '305', '崇信县', '0'), ('2654', '305', '华亭县', '0'), ('2655', '305', '庄浪县', '0'), ('2656', '305', '静宁县', '0'), ('2657', '306', '肃州区', '0'), ('2658', '306', '金塔县', '0'), ('2659', '306', '安西县', '0'), ('2660', '306', '肃北蒙古族自治县', '0'), ('2661', '306', '阿克塞哈萨克族自治县', '0'), ('2662', '306', '玉门市', '0'), ('2663', '306', '敦煌市', '0'), ('2664', '307', '西峰区', '0'), ('2665', '307', '庆城县', '0'), ('2666', '307', '环县', '0'), ('2667', '307', '华池县', '0'), ('2668', '307', '合水县', '0'), ('2669', '307', '正宁县', '0'), ('2670', '307', '宁县', '0'), ('2671', '307', '镇原县', '0'), ('2672', '308', '安定区', '0'), ('2673', '308', '通渭县', '0'), ('2674', '308', '陇西县', '0'), ('2675', '308', '渭源县', '0'), ('2676', '308', '临洮县', '0'), ('2677', '308', '漳县', '0'), ('2678', '308', '岷县', '0'), ('2679', '309', '武都区', '0'), ('2680', '309', '成县', '0'), ('2681', '309', '文县', '0'), ('2682', '309', '宕昌县', '0'), ('2683', '309', '康县', '0'), ('2684', '309', '西和县', '0'), ('2685', '309', '礼县', '0'), ('2686', '309', '徽县', '0'), ('2687', '309', '两当县', '0'), ('2688', '310', '临夏市', '0'), ('2689', '310', '临夏县', '0'), ('2690', '310', '康乐县', '0'), ('2691', '310', '永靖县', '0'), ('2692', '310', '广河县', '0'), ('2693', '310', '和政县', '0'), ('2694', '310', '东乡族自治县', '0'), ('2695', '310', '积石山保安族东乡族撒拉族自治县', '0'), ('2696', '311', '合作市', '0'), ('2697', '311', '临潭县', '0'), ('2698', '311', '卓尼县', '0'), ('2699', '311', '舟曲县', '0'), ('2700', '311', '迭部县', '0'), ('2701', '311', '玛曲县', '0'), ('2702', '311', '碌曲县', '0'), ('2703', '311', '夏河县', '0'), ('2704', '312', '城东区', '0'), ('2705', '312', '城中区', '0'), ('2706', '312', '城西区', '0'), ('2707', '312', '城北区', '0'), ('2708', '312', '大通回族土族自治县', '0'), ('2709', '312', '湟中县', '0'), ('2710', '312', '湟源县', '0'), ('2711', '313', '平安县', '0'), ('2712', '313', '民和回族土族自治县', '0'), ('2713', '313', '乐都县', '0'), ('2714', '313', '互助土族自治县', '0'), ('2715', '313', '化隆回族自治县', '0'), ('2716', '313', '循化撒拉族自治县', '0'), ('2717', '314', '门源回族自治县', '0'), ('2718', '314', '祁连县', '0'), ('2719', '314', '海晏县', '0'), ('2720', '314', '刚察县', '0'), ('2721', '315', '同仁县', '0'), ('2722', '315', '尖扎县', '0'), ('2723', '315', '泽库县', '0'), ('2724', '315', '河南蒙古族自治县', '0'), ('2725', '316', '共和县', '0'), ('2726', '316', '同德县', '0'), ('2727', '316', '贵德县', '0'), ('2728', '316', '兴海县', '0'), ('2729', '316', '贵南县', '0'), ('2730', '317', '玛沁县', '0'), ('2731', '317', '班玛县', '0'), ('2732', '317', '甘德县', '0'), ('2733', '317', '达日县', '0'), ('2734', '317', '久治县', '0'), ('2735', '317', '玛多县', '0'), ('2736', '318', '玉树县', '0'), ('2737', '318', '杂多县', '0'), ('2738', '318', '称多县', '0'), ('2739', '318', '治多县', '0'), ('2740', '318', '囊谦县', '0'), ('2741', '318', '曲麻莱县', '0'), ('2742', '319', '格尔木市', '0'), ('2743', '319', '德令哈市', '0'), ('2744', '319', '乌兰县', '0'), ('2745', '319', '都兰县', '0'), ('2746', '319', '天峻县', '0'), ('2747', '320', '兴庆区', '0'), ('2748', '320', '西夏区', '0'), ('2749', '320', '金凤区', '0'), ('2750', '320', '永宁县', '0'), ('2751', '320', '贺兰县', '0'), ('2752', '320', '灵武市', '0'), ('2753', '321', '大武口区', '0'), ('2754', '321', '惠农区', '0'), ('2755', '321', '平罗县', '0'), ('2756', '322', '利通区', '0'), ('2757', '322', '盐池县', '0'), ('2758', '322', '同心县', '0'), ('2759', '322', '青铜峡市', '0'), ('2760', '323', '原州区', '0'), ('2761', '323', '西吉县', '0'), ('2762', '323', '隆德县', '0'), ('2763', '323', '泾源县', '0'), ('2764', '323', '彭阳县', '0'), ('2765', '324', '沙坡头区', '0'), ('2766', '324', '中宁县', '0'), ('2767', '324', '海原县', '0'), ('2768', '325', '天山区', '0'), ('2769', '325', '沙依巴克区', '0'), ('2770', '325', '新市区', '0'), ('2771', '325', '水磨沟区', '0'), ('2772', '325', '头屯河区', '0'), ('2773', '325', '达坂城区', '0'), ('2774', '325', '东山区', '0'), ('2775', '325', '乌鲁木齐县', '0'), ('2776', '326', '独山子区', '0'), ('2777', '326', '克拉玛依区', '0'), ('2778', '326', '白碱滩区', '0'), ('2779', '326', '乌尔禾区', '0'), ('2780', '327', '吐鲁番市', '0'), ('2781', '327', '鄯善县', '0'), ('2782', '327', '托克逊县', '0'), ('2783', '328', '哈密市', '0'), ('2784', '328', '巴里坤哈萨克自治县', '0'), ('2785', '328', '伊吾县', '0'), ('2786', '329', '昌吉市', '0'), ('2787', '329', '阜康市', '0'), ('2788', '329', '米泉市', '0'), ('2789', '329', '呼图壁县', '0'), ('2790', '329', '玛纳斯县', '0'), ('2791', '329', '奇台县', '0'), ('2792', '329', '吉木萨尔县', '0'), ('2793', '329', '木垒哈萨克自治县', '0'), ('2794', '330', '博乐市', '0'), ('2795', '330', '精河县', '0'), ('2796', '330', '温泉县', '0'), ('2797', '331', '库尔勒市', '0'), ('2798', '331', '轮台县', '0'), ('2799', '331', '尉犁县', '0'), ('2800', '331', '若羌县', '0'), ('2801', '331', '且末县', '0'), ('2802', '331', '焉耆回族自治县', '0'), ('2803', '331', '和静县', '0'), ('2804', '331', '和硕县', '0'), ('2805', '331', '博湖县', '0'), ('2806', '332', '阿克苏市', '0'), ('2807', '332', '温宿县', '0'), ('2808', '332', '库车县', '0'), ('2809', '332', '沙雅县', '0'), ('2810', '332', '新和县', '0'), ('2811', '332', '拜城县', '0'), ('2812', '332', '乌什县', '0'), ('2813', '332', '阿瓦提县', '0'), ('2814', '332', '柯坪县', '0'), ('2815', '333', '阿图什市', '0'), ('2816', '333', '阿克陶县', '0'), ('2817', '333', '阿合奇县', '0'), ('2818', '333', '乌恰县', '0'), ('2819', '334', '喀什市', '0'), ('2820', '334', '疏附县', '0'), ('2821', '334', '疏勒县', '0'), ('2822', '334', '英吉沙县', '0'), ('2823', '334', '泽普县', '0'), ('2824', '334', '莎车县', '0'), ('2825', '334', '叶城县', '0'), ('2826', '334', '麦盖提县', '0'), ('2827', '334', '岳普湖县', '0'), ('2828', '334', '伽师县', '0'), ('2829', '334', '巴楚县', '0'), ('2830', '334', '塔什库尔干塔吉克自治县', '0'), ('2831', '335', '和田市', '0'), ('2832', '335', '和田县', '0'), ('2833', '335', '墨玉县', '0'), ('2834', '335', '皮山县', '0'), ('2835', '335', '洛浦县', '0'), ('2836', '335', '策勒县', '0'), ('2837', '335', '于田县', '0'), ('2838', '335', '民丰县', '0'), ('2839', '336', '伊宁市', '0'), ('2840', '336', '奎屯市', '0'), ('2841', '336', '伊宁县', '0'), ('2842', '336', '察布查尔锡伯自治县', '0'), ('2843', '336', '霍城县', '0'), ('2844', '336', '巩留县', '0'), ('2845', '336', '新源县', '0'), ('2846', '336', '昭苏县', '0'), ('2847', '336', '特克斯县', '0'), ('2848', '336', '尼勒克县', '0'), ('2849', '337', '塔城市', '0'), ('2850', '337', '乌苏市', '0'), ('2851', '337', '额敏县', '0'), ('2852', '337', '沙湾县', '0'), ('2853', '337', '托里县', '0'), ('2854', '337', '裕民县', '0'), ('2855', '337', '和布克赛尔蒙古自治县', '0'), ('2856', '338', '阿勒泰市', '0'), ('2857', '338', '布尔津县', '0'), ('2858', '338', '富蕴县', '0'), ('2859', '338', '福海县', '0'), ('2860', '338', '哈巴河县', '0'), ('2861', '338', '青河县', '0'), ('2862', '338', '吉木乃县', '0'), ('2867', '352', '宛平县', '1'), ('2868', '352', '111111', '5'), ('2869', '345', '台北', '2');
COMMIT;

-- ----------------------------
--  Table structure for `sys_hooks`
-- ----------------------------
DROP TABLE IF EXISTS `sys_hooks`;
CREATE TABLE `sys_hooks` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `name` varchar(40) NOT NULL DEFAULT '' COMMENT '钩子名称',
  `description` text NOT NULL COMMENT '描述',
  `type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '类型  1 视图 2 控制器',
  `addons` varchar(255) NOT NULL DEFAULT '' COMMENT '钩子挂载的插件 ''，''分割',
  `status` tinyint(2) DEFAULT '1',
  `update_time` int(11) DEFAULT '0' COMMENT '更新时间',
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=65 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=65;

-- ----------------------------
--  Records of `sys_hooks`
-- ----------------------------
BEGIN;
INSERT INTO `sys_hooks` VALUES ('23', 'login', '第三方登录', '1', 'Oauthlogin', '1', '1499327900'), ('24', 'sms', '短信', '1', 'sms', '1', '1499487808'), ('26', 'wxtemplatemsg', '微信模板消息设置', '1', '', '1', '1500013768'), ('27', 'orderCreateSuccess', '订单创建成功', '2', '', '1', '1500025515'), ('29', 'orderDeliverySuccess', '订单发货成功', '2', '', '1', '1500448695'), ('30', 'orderPaySuccess', '订单付款成功', '2', 'wxtemplatemsg', '1', '1500448963'), ('31', 'orderRefundApplyCreateSuccess', '订单申请退款创建成功', '2', 'wxtemplatemsg', '1', '1500449386'), ('32', 'orderRefundSuccess', '订单退款成功', '2', 'wxtemplatemsg', '1', '1500450437'), ('33', 'userWithdrawApplyCreateSuccess', '会员提现申请创建成功', '2', 'wxtemplatemsg', '1', '1500450601'), ('34', 'userLoginSuccess', '用户登陆成功', '2', '', '1', '1500619318'), ('35', 'userAddSuccess', '基础用户添加成功后', '2', '', '1', '1500619587'), ('36', 'memberRegisterSuccess', '会员注册成功', '2', '', '1', '1500619688'), ('37', 'memberLevelSaveSuccess', '会员等级保存成功', '2', '', '1', '1500620008'), ('38', 'memberWithdrawApplyCreateSuccess', '会员提现申请创建成功', '2', '', '1', '1500620146'), ('39', 'memberWithdrawAuditAgree', '会员提现审核通过', '2', '', '1', '1500620297'), ('40', 'goodsSaveSuccess', '商品保存成功', '2', '', '1', '1500620784'), ('41', 'goodsSaveBefore', '商品保存之前', '2', '', '1', '1500620803'), ('42', 'goodsDeleteBefore', '商品删除之前', '2', '', '1', '1500621085'), ('43', 'goodsDeleteSuccess', '商品删除成功', '2', '', '1', '1500621109'), ('44', 'goodsOnlineSuccess', '商品上架成功', '2', '', '1', '1500621131'), ('45', 'goodsOfflineSuccess', '商品下架成功', '2', '', '1', '1500621142'), ('55', 'goodsCategorySaveSuccess', '商品分类保存成功', '2', '', '1', '1500621379'), ('56', 'goodsCategoryDeleteSuccess', '商品分类删除成功', '2', '', '1', '1500621397'), ('57', 'goodsBrandSaveSuccess', '商品品牌保存成功', '2', '', '1', '1500621414'), ('58', 'goodsBrandDeleteSuccess', '商品品牌删除成功', '2', '', '1', '1500621428'), ('59', 'goodsGroupSaveSuccess', '商品分组保存成功', '2', '', '1', '1500621441'), ('60', 'goodsGroupDeleteSuccess', '商品分组删除成功', '2', '', '1', '1500621455'), ('61', 'goodsSpecSaveSuccess', '商品规格保存成功', '2', '', '1', '1500621470'), ('62', 'goodsSpecDeleteSuccess', '商品规格删除成功', '2', '', '1', '1500621483'), ('63', 'goodsAttributeSaveSuccess', '商品类型保存成功', '2', '', '1', '1500621495'), ('64', 'goodsAttributeDeleteSuccess', '商品类型删除成功', '2', '', '1', '1500621506');
COMMIT;

-- ----------------------------
--  Table structure for `sys_instance`
-- ----------------------------
DROP TABLE IF EXISTS `sys_instance`;
CREATE TABLE `sys_instance` (
  `instance_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `instance_name` varchar(50) NOT NULL DEFAULT '' COMMENT '实例名',
  `instance_typeid` int(11) NOT NULL DEFAULT '2' COMMENT '实例类型ID',
  `qrcode` varchar(255) NOT NULL DEFAULT '' COMMENT '实例二维码',
  `remark` text COMMENT '实例简介',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`instance_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1365 COMMENT='系统实例表';

-- ----------------------------
--  Records of `sys_instance`
-- ----------------------------
BEGIN;
INSERT INTO `sys_instance` VALUES ('19', 'Niushop开源商城', '1', '', '\'\'', '1477541018');
COMMIT;

-- ----------------------------
--  Table structure for `sys_instance_type`
-- ----------------------------
DROP TABLE IF EXISTS `sys_instance_type`;
CREATE TABLE `sys_instance_type` (
  `instance_typeid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '实例类型ID',
  `type_name` varchar(50) NOT NULL DEFAULT '' COMMENT '实例类型名称',
  `type_module_array` text NOT NULL COMMENT '实例类型权限',
  `type_desc` text NOT NULL COMMENT '实例类型说明',
  `type_sort` int(11) NOT NULL DEFAULT '1' COMMENT '排序号',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`instance_typeid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='实例类型';

-- ----------------------------
--  Table structure for `sys_module`
-- ----------------------------
DROP TABLE IF EXISTS `sys_module`;
CREATE TABLE `sys_module` (
  `module_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模块ID',
  `module_name` varchar(50) NOT NULL DEFAULT '' COMMENT '模块标题',
  `module` varchar(255) NOT NULL DEFAULT 'admin' COMMENT '项目名',
  `controller` varchar(255) NOT NULL DEFAULT '' COMMENT '控制器名',
  `method` varchar(255) NOT NULL DEFAULT '' COMMENT '方法名',
  `pid` int(10) NOT NULL DEFAULT '0' COMMENT '上级模块ID',
  `level` int(11) NOT NULL DEFAULT '1' COMMENT '深度等级',
  `url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  `is_menu` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是菜单',
  `is_dev` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否仅开发者模式可见',
  `sort` int(10) NOT NULL DEFAULT '0' COMMENT '排序（同级有效）',
  `desc` text COMMENT '模块描述',
  `module_picture` varchar(255) NOT NULL DEFAULT '' COMMENT '模块图片',
  `icon_class` varchar(255) NOT NULL DEFAULT '' COMMENT '矢量图class',
  `is_control_auth` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否控制权限',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0',
  PRIMARY KEY (`module_id`)
) ENGINE=InnoDB AUTO_INCREMENT=10136 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=606 COMMENT='系统模块表';

-- ----------------------------
--  Records of `sys_module`
-- ----------------------------
BEGIN;
INSERT INTO `sys_module` VALUES ('120', '系统', 'admin', 'upgrade', 'onlineupdate', '0', '1', 'upgrade/onlineupdate', '1', '0', '999', '\'\'', '', '', '1', '1477454152', '1477794717'), ('121', '模块列表', 'admin', 'system', 'modulelist', '120', '2', 'system/modulelist', '1', '1', '5', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2352&highlight=%E6%A8%A1%E5%9D%97%E5%88%97%E8%A1%A8\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2352&highlight=%E6%A8%A1%E5%9D%97%E5%88%97%E8%A1%A8</a>', '', '', '1', '0', '0'), ('122', '添加模块', 'admin', 'system', 'addmodule', '121', '3', 'system/addmodule', '0', '0', '1', '添加模块', '', '', '1', '0', '1479976597'), ('123', '修改模块', 'admin', 'system', 'editmodule', '121', '3', 'system/editmodule', '0', '0', '2', '修改模块', '', '', '1', '0', '1479976646'), ('126', '管理员列表', 'admin', 'auth', 'userlist', '218', '2', 'auth/userlist', '1', '0', '5', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2386&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2386&extra=page%3D1</a>', '', '', '1', '0', '1484650663'), ('127', '用户列表', 'admin', 'auth', 'userlist', '126', '3', 'auth/userlist', '0', '0', '1', null, '', '', '1', '0', '0'), ('128', '权限组', 'admin', 'auth', 'authgrouplist', '126', '3', 'auth/authgrouplist', '0', '0', '2', '用户组', '', '', '1', '0', '1479976919'), ('129', '删除模块', 'admin', 'system', 'delmodule', '121', '3', 'system/delmodule', '0', '0', '0', '模块列表', '', '', '1', '1477618350', '1479976723'), ('133', '添加用户组', 'admin', 'auth', 'addusergroup', '128', '3', 'auth/addusergroup', '0', '0', '2', '用户组', '', '', '1', '1477628544', '1479977008'), ('137', '会员', 'admin', 'member', 'memberlist', '0', '1', 'member/memberlist', '1', '0', '4', '', '', '', '1', '1477994717', '1493206725'), ('139', '相册管理', 'admin', 'system', 'albumlist', '149', '2', 'system/albumlist', '1', '0', '10', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2312&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2312&extra=page%3D2</a>', '', '', '1', '1478158094', '1496819610'), ('144', '编辑用户', 'admin', 'auth', 'edituser', '127', '3', 'auth/edituser', '0', '0', '5', '用户', '', '', '1', '1478837447', '1479976963'), ('145', '会员列表', 'admin', 'member', 'memberlist', '137', '2', 'member/memberlist', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2321&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2321&extra=page%3D2</a>', '', '', '1', '1478846113', '1478846203'), ('149', '商品', 'admin', 'goods', 'goodslist', '0', '1', 'goods/goodslist', '1', '0', '1', '商品模块', '', '', '1', '1479268148', '1493973167'), ('150', '商品列表', 'admin', 'goods', 'goodslist', '149', '2', 'goods/goodslist', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2301&extra=page%3D3\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2301&extra=page%3D3</a>', '', '', '0', '1479268236', '1491898725'), ('151', '商品发布', 'admin', 'goods', 'addgoods', '149', '2', 'goods/addgoods', '1', '0', '2', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2302&extra=page%3D3\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2302&extra=page%3D3</a>', '', '', '1', '1479268307', '0'), ('169', '图片管理', 'admin', 'system', 'albumpicturelist', '139', '3', 'system/albumpicturelist', '0', '0', '5', 'sfgsdf', '', '', '1', '1479464708', '1479976790'), ('170', '添加运费模板', 'admin', 'express', 'transportationadd', '164', '3', 'express/transportationadd', '0', '0', '1', '添加运费模板', '', '', '1', '1479700610', '1484894376'), ('171', '商品标签', 'admin', 'goods', 'goodsgrouplist', '149', '2', 'goods/goodsgrouplist', '1', '0', '3', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2307&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2307&extra=page%3D2</a>', '', '', '1', '1479873298', '1479960182'), ('172', '添加商品标签', 'admin', 'goods', 'addgoodsgroup', '171', '3', 'goods/addgoodsgroup', '0', '0', '6', '添加商品分组', '', '', '1', '1479873424', '1479960243'), ('176', '运费模板修改', 'admin', 'express', 'transportationedit', '164', '3', 'express/transportationedit', '0', '0', '6', 'sd', '', '', '1', '1480040625', '0'), ('179', '营销', 'admin', 'promotion', 'coupontypelist', '0', '1', 'promotion/coupontypelist', '1', '0', '3', '优惠券类型列表', '', '', '1', '1480491652', '1480491725'), ('180', '优惠券', 'admin', 'promotion', 'coupontypelist', '179', '2', 'promotion/coupontypelist', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2315&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2315&extra=page%3D2</a>', '', '', '1', '1480491846', '0'), ('184', '订单', 'admin', 'order', 'orderlist', '0', '1', 'order/orderlist', '1', '0', '2', '订单列表', '', '', '1', '1480563137', '0'), ('185', '订单列表', 'admin', 'order', 'orderlist', '184', '2', 'order/orderlist', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2314&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2314&extra=page%3D2</a>', '', '', '1', '1480563210', '0'), ('186', '添加优惠券', 'admin', 'promotion', 'addcoupontype', '180', '3', 'promotion/addcoupontype', '1', '0', '2', '添加优惠券类型', '', '', '1', '1480573171', '0'), ('187', '修改优惠券', 'admin', 'promotion', 'updatecoupontype', '180', '3', 'promotion/updatecoupontype', '1', '0', '3', '修改优惠券类型', '', '', '1', '1480904943', '0'), ('189', '物流公司', 'admin', 'express', 'expresscompany', '529', '3', 'express/expresscompany', '0', '0', '60', '物流公司', '', '', '1', '1481254866', '1484894344'), ('190', '订单详情', 'admin', 'order', 'orderdetail', '185', '3', 'order/orderdetail', '0', '0', '1', '订单详情', '', '', '1', '1481258173', '0'), ('191', '添加物流公司', 'admin', 'express', 'addexpresscompany', '529', '3', 'express/addexpresscompany', '1', '0', '1', '添加物流公司', '', '', '1', '1481267828', '0'), ('192', '物流公司修改', 'admin', 'express', 'updateexpresscompany', '529', '3', 'express/updateexpresscompany', '1', '0', '2', '物流公司修改排序', '', '', '1', '1481271808', '0'), ('194', '退款详情', 'admin', 'order', 'orderrefunddetail', '185', '3', 'order/orderrefunddetail', '0', '0', '2', '退款详情', '', '', '1', '1481872074', '0'), ('195', '赠品', 'admin', 'promotion', 'giftlist', '179', '2', 'promotion/giftlist', '1', '0', '3', '', '', '', '1', '1482113074', '1494215988'), ('196', '添加赠品', 'admin', 'promotion', 'addgift', '195', '3', 'promotion/addgift', '1', '0', '0', '添加赠品', '', '', '1', '1482113664', '1482117539'), ('197', '修改赠品', 'admin', 'promotion', 'updategift', '195', '3', 'promotion/updategift', '1', '0', '0', '修改赠品', '', '', '1', '1482113715', '1482117558'), ('198', '满减送', 'admin', 'promotion', 'mansonglist', '179', '2', 'promotion/mansonglist', '1', '0', '4', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2317&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2317&extra=page%3D2</a>', '', '', '1', '1482138580', '1482138597'), ('199', '添加满减满送', 'admin', 'promotion', 'addmansong', '198', '3', 'promotion/addmansong', '1', '0', '0', '满减送', '', '', '1', '1482140311', '0'), ('200', '编辑满减送', 'admin', 'promotion', 'updatemansong', '198', '3', 'promotion/updatemansong', '1', '0', '1', '编辑满减送', '', '', '1', '1482907059', '0'), ('201', '限时折扣', 'admin', 'promotion', 'getdiscountlist', '179', '2', 'promotion/getdiscountlist', '1', '0', '5', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2318&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2318&extra=page%3D2</a>', '', '', '1', '1483949283', '0'), ('202', '添加限时折扣', 'admin', 'promotion', 'adddiscount', '201', '3', 'promotion/adddiscount', '1', '0', '0', '添加限时折扣', '', '', '1', '1483951104', '0'), ('203', '修改限时折扣', 'admin', 'promotion', 'updatediscount', '201', '3', 'promotion/updatediscount', '1', '0', '1', '修改限时折扣', '', '', '1', '1483951151', '1483958451'), ('210', '修改商品标签', 'admin', 'goods', 'updategoodsgroup', '171', '3', 'goods/updategoodsgroup', '0', '0', '2', '修改商品分组', '', '', '1', '1484120298', '1484125917'), ('218', '设置', 'admin', 'config', 'webconfig', '0', '1', 'config/webconfig', '1', '0', '11', '店铺设置', '', '', '1', '1484617355', '1493348177'), ('221', '支付配置', 'admin', 'config', 'paymentconfig', '10096', '3', 'config/paymentconfig', '0', '0', '2', '支付配置', '\'\'', '', '1', '1484623427', '1496820428'), ('334', '咨询管理', 'admin', 'saleservice', 'consultlist', '149', '2', 'saleservice/consultlist', '1', '0', '8', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2310&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2310&extra=page%3D2</a>', '', '', '1', '1488875702', '1496392553'), ('335', '微信', 'admin', 'wchat', 'config', '0', '1', 'wchat/config', '1', '0', '8', '微信', '', '', '1', '1488945338', '1493015492'), ('336', '公众号管理', 'admin', 'wchat', 'config', '335', '2', 'wchat/config', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2326&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2326&extra=page%3D2</a>', '', '', '1', '1488945416', '0'), ('339', '微信菜单管理', 'admin', 'wchat', 'menu', '335', '2', 'wchat/menu', '1', '0', '2', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2327&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2327&extra=page%3D2</a>', '', '', '1', '1489046481', '0'), ('340', '推广二维码管理', 'admin', 'wchat', 'weixinqrcodetemplate', '335', '2', 'wchat/weixinqrcodetemplate', '1', '0', '3', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2328&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2328&extra=page%3D2</a>', '', '', '1', '1489046596', '1490153341'), ('341', '回复设置', 'admin', 'wchat', 'replayconfig', '335', '2', 'wchat/replayconfig', '1', '0', '4', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2329&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2329&extra=page%3D2</a>', '', '', '1', '1489046662', '0'), ('342', '消息素材管理', 'admin', 'wchat', 'materialmessage', '335', '2', 'wchat/materialmessage', '1', '0', '6', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2330&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2330&extra=page%3D2</a>', '', '', '1', '1489046731', '0'), ('343', '分享内容设置', 'admin', 'wchat', 'shareconfig', '335', '2', 'wchat/shareconfig', '1', '0', '7', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2332&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2332&extra=page%3D2</a>', '', '', '1', '1489046804', '0'), ('358', '自定义推广二维码', 'admin', 'wchat', 'qrcode', '340', '3', 'wchat/qrcode', '0', '0', '1', '自定义二维码', '', '', '1', '1490153257', '1490153278'), ('359', '添加回复', 'admin', 'wchat', 'addorupdatekeyreplay', '341', '3', 'wchat/addorupdatekeyreplay', '1', '0', '1', '', '', '', '1', '1490236498', '0'), ('360', '添加用户', 'admin', 'auth', 'adduser', '127', '3', 'auth/adduser', '0', '0', '1', '添加用户', '', '', '1', '1490236731', '0'), ('361', '一键关注设置', 'admin', 'wchat', 'onekeysubscribe', '335', '2', 'wchat/onekeysubscribe', '0', '0', '6', '一键关注设置', '', '', '1', '1490318979', '1496386363'), ('381', '广告管理', 'admin', 'system', 'shopadvlist', '477', '2', 'system/shopadvlist', '1', '0', '6', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2375&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2375&extra=page%3D1</a>', '', '', '1', '1490774263', '1496320676'), ('382', '广告管理', 'admin', 'system', 'shopadvlist', '381', '3', 'system/shopadvlist', '0', '0', '0', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2375&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2375&extra=page%3D1</a>', '', '', '1', '1490785255', '0'), ('383', '添加广告位', 'admin', 'system', 'addshopadvposition', '381', '3', 'system/addshopadvposition', '0', '0', '0', '添加广告位', '', '', '1', '1490835009', '0'), ('387', '广告位编辑', 'admin', 'system', 'updateshopadvposition', '381', '3', 'system/updateshopadvposition', '1', '0', '0', '广告位编辑', '', '', '1', '1490851266', '0'), ('388', '添加广告', 'admin', 'system', 'addshopadv', '381', '3', 'system/addshopadv', '0', '0', '0', '添加广告', '', '', '1', '1490854140', '0'), ('389', '广告编辑', 'admin', 'system', 'updateshopadv', '381', '3', 'system/updateshopadv', '0', '0', '0', '', '', '', '1', '1490857038', '0'), ('390', '促销版块', 'admin', 'system', 'goodsrecommendclass', '10004', '3', 'system/goodsrecommendclass', '0', '0', '10', '促销版块管理', '', '', '1', '1490861814', '1496320694'), ('392', '首页楼层', 'admin', 'system', 'blocklist', '10004', '3', 'system/blocklist', '0', '0', '11', '', '', '', '1', '1490947012', '1496320711'), ('394', '添加楼层', 'admin', 'system', 'addblock', '10004', '3', 'system/addblock', '0', '0', '0', '', '', '', '1', '1490948318', '0'), ('395', '楼层编辑', 'admin', 'system', 'updateblock', '10004', '3', 'system/updateblock', '0', '0', '0', '', '', '', '1', '1490948388', '1490952538'), ('398', '个人资料', 'admin', 'auth', 'userdetail', '126', '2', 'auth/userdetail', '1', '0', '0', '个人资料', '', '', '0', '1491029995', '1494298490'), ('403', '销售排行', 'admin', 'account', 'shopgoodssalesrank', '409', '2', 'account/shopgoodssalesrank', '1', '0', '9', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2390&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2390&extra=page%3D1</a>', '', '', '1', '1491040090', '1496819701'), ('405', '商品销售统计', 'admin', 'account', 'shopgoodsaccountlist', '403', '3', 'account/shopgoodsaccountlist', '0', '0', '6', '商品销售统计', '', '', '1', '1491042742', '0'), ('409', '数据', 'admin', 'account', 'shopsalesaccount', '0', '1', 'account/shopsalesaccount', '1', '0', '7', '资产', '', '', '1', '1493281488', '1493974412'), ('418', '网站设置', 'admin', 'config', 'webconfig', '528', '3', 'config/webconfig', '0', '0', '2', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2342&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2342&extra=page%3D2</a>', '', '', '1', '1492755047', '0'), ('419', '商品分类', 'admin', 'goods', 'goodscategorylist', '149', '2', 'goods/goodscategorylist', '1', '0', '2', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2303&extra=page%3D3\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2303&extra=page%3D3</a>', '', '', '1', '1492755701', '0'), ('420', '添加商品分类', 'admin', 'goods', 'addgoodscategory', '419', '3', 'goods/addgoodscategory', '1', '0', '2', '添加商品分类', '', '', '1', '1492755811', '1492755828'), ('421', '修改商品分类', 'admin', 'goods', 'updategoodscategory', '419', '3', 'goods/updategoodscategory', '1', '0', '1', '修改商品分类', '', '', '1', '1492755920', '0'), ('422', '删除商品分类', 'admin', 'goods', 'deletegoodscategory', '419', '3', 'goods/deletegoodscategory', '1', '0', '2', '删除商品分类', '', '', '1', '1492755973', '0'), ('423', '商品品牌', 'admin', 'goods', 'goodsbrandlist', '149', '2', 'goods/goodsbrandlist', '1', '0', '3', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2304&extra=page%3D3\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2304&extra=page%3D3</a>', '', '', '1', '1492756038', '0'), ('424', '添加商品品牌', 'admin', 'goods', 'addgoodsbrand', '423', '3', 'goods/addgoodsbrand', '1', '0', '1', '添加商品品牌', '', '', '1', '1492756096', '0'), ('425', '修改商品品牌', 'admin', 'goods', 'updategoodsbrand', '423', '3', 'goods/updategoodsbrand', '1', '0', '4', '修改商品品牌', '', '', '1', '1492756169', '0'), ('427', '导航管理', 'admin', 'config', 'shopnavigationlist', '477', '2', 'config/shopnavigationlist', '1', '0', '2', '导航', '', '', '1', '1492761752', '1496320733'), ('428', '添加导航', 'admin', 'config', 'addshopnavigation', '427', '3', 'config/addshopnavigation', '0', '0', '1', '添加导航', '', '', '0', '1492761909', '0'), ('429', '修改导航', 'admin', 'config', 'updateshopnavigation', '427', '3', 'config/updateshopnavigation', '0', '0', '2', '修改导航', '', '', '0', '1492762515', '0'), ('430', '友情链接', 'admin', 'config', 'linklist', '477', '2', 'config/linklist', '1', '0', '10', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2381&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2381&extra=page%3D1</a>', '', '', '1', '1492765269', '1496320750'), ('431', '文章管理', 'admin', 'cms', 'articlelist', '477', '2', 'cms/articlelist', '1', '0', '7', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2378&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2378&extra=page%3D1</a>', '', '', '1', '1492782512', '1492782619'), ('432', '文章列表', 'admin', 'cms', 'articlelist', '431', '3', 'cms/articlelist', '0', '0', '1', '文章列表', '', '', '1', '1492782808', '1492782837'), ('433', '文章分类', 'admin', 'cms', 'articleclasslist', '431', '3', 'cms/articleclasslist', '0', '0', '2', '文章列表', '', '', '1', '1492782934', '1492782952'), ('434', '评论列表', 'admin', 'cms', 'commentarticle', '431', '2', 'cms/commentarticle', '0', '0', '3', '评论列表', '', '', '1', '1492782991', '1497084797'), ('436', '添加友情链接', 'admin', 'config', 'addlink', '430', '3', 'config/addlink', '0', '0', '1', '添加友情链接', '', '', '1', '1493190273', '1493190306'), ('437', '编辑友情链接', 'admin', 'config', 'updatelink', '430', '3', 'config/updatelink', '0', '0', '2', '编辑友情链接', '', '', '1', '1493192018', '0'), ('439', '通知系统', 'admin', 'config', 'notifyindex', '528', '3', 'config/notifyindex', '0', '0', '26', 'messageConfig', '', '', '1', '1493194795', '1496722814'), ('440', '帮助类型', 'admin', 'config', 'helpclass', '530', '3', 'config/helpclass', '0', '0', '10', '帮助类型', '', '', '1', '1493199934', '1496320786'), ('441', '帮助内容', 'admin', 'config', 'helpdocument', '530', '3', 'config/helpdocument', '0', '0', '18', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2380&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2380&extra=page%3D1</a>', '', '', '1', '1493201598', '1496320803'), ('442', '添加帮助类型', 'admin', 'config', 'addhelpclass', '530', '3', 'config/addhelpclass', '0', '0', '1', '添加帮助类型', '', '', '1', '1493201673', '0'), ('443', '修改帮助内容', 'admin', 'config', 'updatedocument', '530', '3', 'config/updatedocument', '0', '0', '2', 'updateDocument.html', '', '', '1', '1493203409', '0'), ('444', '添加帮助内容', 'admin', 'config', 'adddocument', '530', '3', 'config/adddocument', '0', '0', '2', 'aaddDocument', '', '', '1', '1493205866', '0'), ('445', '首页公告', 'admin', 'config', 'usernotice', '477', '2', 'config/usernotice', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2370&page=1&extra=#pid6025\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2370&page=1&extra=#pid6025</a>', '', '', '1', '1493206256', '1496321121'), ('446', '积分管理', 'admin', 'promotion', 'pointconfig', '179', '2', 'promotion/pointconfig', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2316&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2316&extra=page%3D2</a>', '', '', '1', '1493206530', '1496894015'), ('447', '粉丝列表', 'admin', 'member', 'weixinfanslist', '335', '2', 'member/weixinfanslist', '1', '0', '10', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2322&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2322&extra=page%3D2</a>', '', '', '1', '1493278702', '0'), ('450', '修改消息素材', 'admin', 'wchat', 'updatemedia', '342', '3', 'wchat/updatemedia', '1', '0', '1', '', '', '', '1', '1493282078', '1493282297'), ('451', '添加消息素材', 'admin', 'wchat', 'addmedia', '342', '3', 'wchat/addmedia', '1', '0', '1', '', '', '', '1', '1493282371', '0'), ('452', '添加文章', 'admin', 'cms', 'addarticle', '431', '3', 'cms/addarticle', '0', '0', '4', '', '', '', '1', '1493287571', '1493289825'), ('454', '销售统计', 'admin', 'account', 'orderaccountcount', '409', '2', 'account/orderaccountcount', '0', '0', '6', '', '', '', '1', '1493289961', '1493981704'), ('455', '修改文章', 'admin', 'cms', 'updatearticle', '431', '3', 'cms/updatearticle', '0', '0', '2', '', '', '', '1', '1493343780', '0'), ('456', '第三方登录', 'admin', 'config', 'partylogin', '528', '3', 'config/partylogin', '0', '0', '25', '', '', '', '1', '1493347646', '1496903436'), ('457', '销售明细', 'admin', 'account', 'orderrecordslist', '454', '3', 'account/orderrecordslist', '0', '0', '2', '', '', '', '1', '1493705080', '1493705419'), ('459', '销售概况', 'admin', 'account', 'shopsalesaccount', '409', '2', 'account/shopsalesaccount', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2387&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2387&extra=page%3D1</a>', '', '', '1', '1493776001', '1493974321'), ('460', '热卖商品', 'admin', 'account', 'bestsellergoods', '463', '3', 'account/bestsellergoods', '0', '0', '1', '', '', '', '1', '1493867120', '1493972190'), ('461', '同行热卖', 'admin', 'account', 'shopgoodsgroupsalecount', '409', '2', 'account/shopgoodsgroupsalecount', '1', '0', '4', '', '', '', '1', '1493946658', '1493950999'), ('462', '运营报告', 'admin', 'account', 'shopreport', '409', '2', 'account/shopreport', '1', '0', '5', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2389&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2389&extra=page%3D1</a>', '', '', '1', '1493947412', '0'), ('463', '商品分析', 'admin', 'account', 'shopgoodssaleslist', '409', '2', 'account/shopgoodssaleslist', '1', '0', '2', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2325&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2325&extra=page%3D2</a>', '', '', '1', '1493949799', '0'), ('467', '首页', 'admin', 'index', 'index', '0', '1', 'index/index', '1', '0', '0', '', '', '', '0', '1494485612', '1497071676'), ('469', '满额包邮', 'admin', 'promotion', 'fullshipping', '179', '2', 'promotion/fullshipping', '1', '0', '6', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2320&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2320&extra=page%3D2</a>', '', '', '1', '1494928162', '0'), ('471', '商家地址', 'admin', 'order', 'returnsetting', '529', '3', 'order/returnsetting', '0', '0', '70', '退货设置', '', '', '1', '1496215760', '1496216046'), ('472', '添加或修改', 'admin', 'order', 'addreturn', '529', '3', 'order/addreturn', '1', '0', '1', '添加退货', '', '', '1', '1496215892', '1496216067'), ('474', '首页公告', 'admin', 'config', 'updatenotice', '10005', '3', 'config/updatenotice', '0', '0', '15', '公告', '', '', '1', '1496291567', '1496320766'), ('477', '网站', 'admin', 'config', 'shopnavigationlist', '0', '1', 'config/usernotice', '1', '0', '9', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2371&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2371&extra=page%3D1</a>', '', '', '1', '1496303515', '1496821512'), ('478', '商品评价', 'admin', 'goods', 'goodscomment', '149', '2', 'goods/goodscomment', '1', '0', '8', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2311&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2311&extra=page%3D2</a>', '', '', '1', '1496310914', '0'), ('479', '商品规格', 'admin', 'goods', 'goodsspeclist', '149', '2', 'goods/goodsspeclist', '1', '0', '6', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2306&extra=page%3D3\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2306&extra=page%3D3</a>', '', '', '1', '1496314078', '1496368479'), ('480', '添加商品规格', 'admin', 'goods', 'addgoodsspec', '479', '3', 'goods/addgoodsspec', '0', '0', '1', '', '', '', '1', '1496368895', '0'), ('481', '修改商品规格', 'admin', 'goods', 'updategoodsspec', '479', '3', 'goods/updategoodsspec', '0', '0', '0', '', '', '', '1', '1496386955', '0'), ('482', '商品类型', 'admin', 'goods', 'attributelist', '149', '2', 'goods/attributelist', '1', '0', '7', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2309&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2309&extra=page%3D2</a>', '', '', '1', '1496392434', '1496392497'), ('484', '添加商品类型', 'admin', 'goods', 'addattributeservice', '482', '3', 'goods/addattributeservice', '0', '0', '0', '', '', '', '1', '1496395497', '1496457873'), ('485', '修改商品类型', 'admin', 'goods', 'updategoodsattribute', '482', '3', 'goods/updategoodsattribute', '0', '0', '0', '', '', '', '1', '1496396084', '0'), ('486', '地区管理', 'admin', 'config', 'areamanagement', '529', '3', 'config/areamanagement', '0', '0', '50', '', '', '', '1', '1496452390', '0'), ('487', '模板编辑', 'admin', 'express', 'expresstemplate', '529', '3', 'express/expresstemplate', '0', '0', '0', '', '', '', '1', '1496459993', '0'), ('488', '会员等级', 'admin', 'member', 'memberlevellist', '137', '2', 'member/memberlevellist', '1', '0', '3', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2323&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2323&extra=page%3D2</a>', '', '', '1', '1496462360', '0'), ('489', '添加等级', 'admin', 'member', 'addmemberlevel', '488', '3', 'member/addmemberlevel', '1', '0', '1', '添加等级', '', '', '1', '1496483895', '0'), ('490', '修改等级', 'admin', 'member', 'updatememberlevel', '488', '3', 'member/updatememberlevel', '1', '0', '0', '修改等级', '', '', '1', '1496483933', '1496485692'), ('491', '专题列表', 'admin', 'cms', 'topiclist', '477', '2', 'cms/topiclist', '1', '0', '8', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2379&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2379&extra=page%3D1</a>', '', '', '1', '1496630179', '1496632713'), ('492', '添加专题', 'admin', 'cms', 'addtopic', '491', '3', 'cms/addtopic', '1', '0', '1', '添加专题', '', '', '1', '1496630640', '1496632753'), ('493', '修改专题', 'admin', 'cms', 'updatetopic', '491', '3', 'cms/updatetopic', '1', '0', '2', '修改专题', '', '', '1', '1496630696', '1496632781'), ('494', '购物设置', 'admin', 'config', 'shopset', '10096', '3', 'config/shopset', '0', '0', '1', '购物设置', '', '', '1', '1496716845', '1496717062'), ('495', '邮件设置', 'admin', 'config', 'messageconfig', '439', '3', 'config/messageconfig', '0', '0', '0', '', '', '', '1', '1496731597', '0'), ('496', '短信设置', 'admin', 'config', 'messageconfig', '439', '3', 'config/messageconfig', '0', '0', '0', '', '', '', '1', '1496731636', '0'), ('497', '会员积分明细', 'admin', 'member', 'pointdetail', '145', '3', 'member/pointdetail', '0', '0', '0', '', '', '', '1', '1496739472', '0'), ('498', '会员余额明细', 'admin', 'member', 'accountdetail', '145', '3', 'member/accountdetail', '0', '0', '0', '', '', '', '1', '1496744512', '0'), ('499', 'seo设置', 'admin', 'config', 'seoconfig', '528', '3', 'config/seoconfig', '0', '0', '2', 'seo设置', '', '', '1', '1496750885', '1496751054'), ('501', '微信支付', 'admin', 'config', 'payconfig', '221', '3', 'config/payconfig', '1', '0', '1', '微信支付', '', '', '1', '1496821450', '0'), ('502', '支付宝支付', 'admin', 'config', 'payaliconfig', '221', '3', 'config/payaliconfig', '1', '0', '2', '支付宝支付', '', '', '1', '1496821780', '0'), ('503', '会员提现设置', 'admin', 'config', 'memberwithdrawsetting', '504', '3', 'config/memberwithdrawsetting', '0', '0', '0', '会员提现设置', '', '', '1', '1496821934', '1496822222'), ('504', '会员提现', 'admin', 'member', 'usercommissionwithdrawlist', '137', '2', 'member/usercommissionwithdrawlist', '1', '0', '4', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2324&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2324&extra=page%3D2</a>', '', '', '1', '1496822171', '1496822242'), ('506', '模板管理', 'admin', 'config', 'notifytemplate', '439', '3', 'config/notifytemplate', '0', '0', '0', '', '', '', '1', '1496886539', '1496974268'), ('509', '积分管理', 'admin', 'member', 'pointlist', '137', '2', 'member/pointlist', '1', '0', '5', '', '', '', '1', '1496906007', '1496906222'), ('510', '余额管理', 'admin', 'member', 'accountlist', '137', '2', 'member/accountlist', '1', '0', '6', '', '', '', '1', '1496906142', '1496906242'), ('512', '微信登录', 'admin', 'config', 'loginconfig', '456', '3', 'config/loginconfig', '1', '0', '2', '微信登录', '', '', '1', '1496907149', '1496907569'), ('513', 'qq登录', 'admin', 'config', 'loginconfig', '456', '3', 'config/loginconfig', '1', '0', '1', 'qq登录', '', '', '1', '1496907238', '1496907552'), ('515', '欢迎页', 'admin', 'index', 'index', '467', '2', 'index/index', '1', '0', '0', '欢迎页', '', '', '0', '1496979062', '0'), ('518', '回收站列表', 'admin', 'goods', 'recyclelist', '150', '3', 'goods/recyclelist', '0', '0', '2', '', '', '', '1', '1497445996', '1497445996'), ('519', '货到付款地区管理', 'admin', 'config', 'distributionareamanagement', '529', '3', 'config/distributionareamanagement', '0', '0', '24', '', '', '', '1', '1497706614', '1497706614'), ('520', '自提点管理', 'admin', 'shop', 'pickuppointlist', '529', '3', 'shop/pickuppointlist', '0', '0', '80', '', '', '', '1', '1498135759', '1498135759'), ('521', '添加自提点', 'admin', 'shop', 'addpickuppoint', '529', '3', 'shop/addpickuppoint', '0', '0', '0', '', '', '', '1', '1498135759', '1498135759'), ('522', '修改自提点', 'admin', 'shop', 'updatepickuppoint', '529', '3', 'shop/updatepickuppoint', '0', '0', '0', '', '', '', '1', '1498135759', '1498135759'), ('523', '物流跟踪设置', 'admin', 'config', 'expressmessage', '529', '3', 'config/expressmessage', '0', '0', '100', '', '', '', '1', '1498198990', '1498198990'), ('524', '在线更新', 'admin', 'upgrade', 'onlineupdate', '120', '2', 'upgrade/onlineupdate', '1', '0', '1', '', '', '', '1', '1498733102', '1498733102'), ('525', '运费模板列表', 'admin', 'express', 'freighttemplatelist', '529', '3', 'express/freighttemplatelist', '0', '0', '0', '', '', '', '1', '1498733102', '1498733102'), ('526', '编辑运费模板', 'admin', 'express', 'freighttemplateedit', '529', '3', 'express/freighttemplateedit', '0', '0', '2', '', '', '', '1', '1498733102', '1498733102'), ('527', '注册与访问', 'admin', 'config', 'registerAndVisit', '528', '3', 'config/registerandvisit', '0', '0', '20', '', '', '', '1', '1498874511', '1498874511'), ('528', '基础设置', 'admin', 'config', 'webconfig', '218', '2', 'config/webconfig', '1', '0', '1', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2342&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2342&extra=page%3D2</a>', '', '', '1', '1499343015', '1499343015'), ('529', '配送管理', 'admin', 'express', 'expresscompany', '218', '2', 'express/expresscompany', '1', '0', '3', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2350&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2350&extra=page%3D2</a>', '', '', '1', '1499343015', '1499343015'), ('530', '站点帮助', 'admin', 'config', 'helpclass', '477', '2', 'config/helpdocument', '1', '0', '9', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2380&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2380&extra=page%3D1</a>', '', '', '1', '1499343015', '1499343015'), ('10001', '供货商', 'admin', 'member', 'supplierlist', '149', '2', 'member/supplierlist', '1', '0', '7', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2308&extra=page%3D2\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2308&extra=page%3D2</a>', '', '', '1', '1499853120', '1499853120'), ('10002', '添加供货商', 'admin', 'member', 'addsupplier', '10001', '3', 'member/addsupplier', '1', '0', '0', '', '', '', '1', '1499853120', '1499853120'), ('10003', '修改供货商', 'admin', 'member', 'updatesupplier', '10001', '3', 'member/updatesupplier', '1', '0', '1', '', '', '', '1', '1499853120', '1499853120'), ('10004', '店铺装修', 'admin', 'config', 'pctemplate', '477', '2', 'config/pctemplate', '1', '0', '4', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2373&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2373&extra=page%3D1</a>', '', '', '1', '1500608761', '1500608761'), ('10005', '搜索', 'admin', 'config', 'searchconfig', '477', '2', 'config/searchconfig', '1', '0', '5', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2374&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2374&extra=page%3D1</a>', '', '', '1', '1500608765', '1500608765'), ('10006', '促销版块', 'admin', 'system', 'goodsrecommendclassmobile', '10005', '3', 'system/goodsrecommendclassmobile', '0', '0', '20', '', '', '', '1', '1500608766', '1500608766'), ('10007', '授权信息', 'admin', 'upgrade', 'devolutioninfo', '120', '2', 'upgrade/devolutioninfo', '1', '0', '2', '', '', '', '1', '1500608776', '1500608776'), ('10009', '插件管理', 'admin', 'extend', 'addonslist', '120', '2', 'extend/addonslist', '1', '0', '3', '', '', '', '1', '1500633040', '0'), ('10010', '钩子管理', 'admin', 'extend', 'hookslist', '120', '2', 'extend/hookslist', '1', '0', '4', '', '', '', '1', '1500633096', '0'), ('10011', '插件列表', 'admin', 'extend', 'pluginlist', '10008', '2', 'extend/pluginlist', '0', '0', '3', '', '', '', '1', '1500633141', '0'), ('10012', '添加钩子', 'admin', 'extend', 'addhooks', '10010', '3', 'extend/addhooks', '1', '0', '0', '', '', '', '1', '1500633268', '0'), ('10013', '修改钩子', 'admin', 'extend', 'updatehooks', '10010', '3', 'extend/updatehooks', '1', '0', '0', '', '', '', '1', '1500633326', '0'), ('10014', '插件配置', 'admin', 'extend', 'pluginconfig', '10008', '2', 'extend/pluginconfig', '0', '0', '4', '', '', '', '1', '1500633368', '0'), ('10015', '插件配置', 'admin', 'extend', 'addonsconfig', '10008', '2', 'extend/addonsconfig', '0', '0', '5', '', '', '', '1', '1500633398', '0'), ('10016', '自提点运费', 'admin', 'shop', 'pickuppointfreight', '529', '3', 'shop/pickuppointfreight', '1', '0', '4', '', '', '', '1', '1501809931', '1501809931'), ('10017', '版权', 'admin', 'config', 'copyrightinfo', '528', '3', 'config/copyrightinfo', '0', '0', '8', '', '', '', '1', '1501810329', '1501810329'), ('10018', '手机模板', 'admin', 'config', 'waptemplate', '10005', '3', 'config/waptemplate', '0', '0', '3', '', '', '', '1', '1501923272', '1501923272'), ('10019', '客服', 'admin', 'config', 'customservice', '528', '3', 'config/customservice', '0', '0', '28', '', '', '', '1', '1502539867', '1502539867'), ('10021', '手机端模板', 'admin', 'config', 'fixedtemplate', '10004', '3', 'config/fixedtemplate', '0', '0', '2', '', '', '', '1', '1502539867', '1502539867'), ('10023', '商品楼层', 'admin', 'system', 'goodscategoryblock', '477', '2', 'system/goodscategoryblock', '1', '0', '3', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2372&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2372&extra=page%3D1</a>', '', '', '1', '0', '0'), ('10024', '电脑端模板', 'admin', 'config', 'pctemplate', '10004', '3', 'config/pctemplate', '1', '0', '1', '', '', '', '1', '1504697788', '1504697788'), ('10075', '商家通知', 'admin', 'config', 'businessnotifytemplate', '439', '3', 'config/businessnotifytemplate', '0', '0', '0', '', '', '', '1', '1505870490', '0'), ('10077', '数据库管理', 'admin', 'dbdatabase', 'databaselist', '218', '2', 'dbdatabase/databaselist', '1', '0', '4', '相关教程：<a href=\"http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2385&extra=page%3D1\" target=\"_blank\">http://bbs.niushop.com.cn/forum.php?mod=viewthread&tid=2385&extra=page%3D1</a>', '', '', '1', '1506132536', '0'), ('10078', '数据库恢复', 'admin', 'dbdatabase', 'importdatalist', '10077', '3', 'dbdatabase/importdatalist', '0', '0', '0', '', '', '', '1', '1506132758', '0'), ('10079', 'SQL执行与导入', 'admin', 'dbdatabase', 'sqlfilequery', '10077', '3', 'dbdatabase/sqlfilequery', '0', '0', '0', '', '', '', '1', '1506132811', '0'), ('10080', '添加首页公告', 'admin', 'config', 'addhomenotice', '445', '3', 'config/addhomenotice', '0', '0', '1', '', '', '', '1', '1508152805', '0'), ('10081', '公告编辑', 'admin', 'config', 'updatehomenotice', '445', '3', 'config/updatehomenotice', '0', '0', '2', '', '', '', '1', '1508208576', '0'), ('10082', '上传设置', 'admin', 'config', 'pictureuploadsetting', '528', '3', 'config/pictureuploadsetting', '0', '0', '21', '', '', '', '1', '1508152805', '0'), ('10083', '系统更新', 'admin', 'upgrade', 'upgradePatch', '524', '3', 'upgrade/upgradepatch', '0', '0', '0', '', '', '', '1', '1508572839', '0'), ('10084', '伪静态路由', 'admin', 'config', 'customPseudoStaticRule', '528', '3', 'config/customPseudoStaticRule', '0', '0', '24', '', '', '', '1', '1509941657', '0'), ('10085', '编辑路由规则', 'admin', 'config', 'updateRoutingRule', '10084', '3', 'config/updateRoutingRule', '0', '0', '0', '', '', '', '1', '1509958647', '0'), ('10086', '添加路由规则', 'admin', 'config', 'addRoutingRules', '10084', '3', 'config/addRoutingRules', '0', '0', '0', '', '', '', '1', '1509951666', '1509959648'), ('10087', '广告位管理', 'admin', 'system', 'shopadvpositionlist', '381', '3', 'system/shopadvpositionlist', '0', '0', '0', '', '', '', '1', '1512180137', '0'), ('10096', '交易设置', 'admin', 'config', 'shopset', '218', '2', 'config/shopset', '1', '0', '2', '相关教程：<a href=\"http://bbs.niushop.com.cn/thread-2384-1-1.html\" target=\"_blank\">http://bbs.niushop.com.cn/thread-2384-1-1.html</a>\"', '', '', '1', '1517565416', '0'), ('10097', '运营', 'admin', 'config', 'visitConfig', '528', '3', 'config/visitconfig', '1', '0', '2', '访问设置', '', '', '1', '1517565417', '0'), ('10101', '用户操作日志', 'admin', 'Member', 'userOperationLogList', '126', '2', 'Member/userOperationLogList', '1', '0', '10', '用户操作日志', '', '', '1', '1517565419', '0'), ('10103', '奖励规则', 'admin', 'promotion', 'integral', '179', '2', 'promotion/integral', '1', '0', '10', '奖励规则', '', '', '1', '1517565419', '0'), ('10104', '一键关注设置', 'admin', 'wchat', 'keyConcernConfig', '335', '2', 'wchat/keyConcernConfig', '1', '0', '12', '一键关注设置', '', '', '1', '1517565419', '0'), ('10105', '商家服务', 'admin', 'config', 'merchantService', '528', '3', 'config/merchantService', '0', '0', '0', '商家服务', '', '', '1', '1517565419', '0'), ('10106', '赠品发放记录', 'admin', 'promotion', 'giftGrantRecordsList', '195', '3', 'config/merchantService', '0', '0', '0', '赠品发放记录', '', '', '1', '1517565421', '0'), ('10113', '会员足迹', 'admin', 'member', 'newpath', '145', '3', 'member/newpath', '0', '0', '0', '会员足迹', '', '', '1', '1522756901', '0'), ('10119', '会员余额明细', 'admin', 'member', 'balancedetail', '145', '3', 'member/balancedetail', '1', '0', '0', '会员余额明细', '', '', '1', '1522756903', '0'), ('10120', '通知记录', 'admin', 'config', 'notifylist', '528', '3', 'config/notifylist', '1', '0', '0', '', '', '', '1', '1522756903', '0'), ('10121', '操作日志', 'admin', 'auth', 'authLog', '126', '3', 'auth/authLog', '0', '0', '5', '', '', '', '1', '1522756904', '0'), ('10122', '发票管理', 'admin', 'order', 'invoiceList', '184', '2', 'order/invoiceList', '1', '0', '15', '', '', '', '1', '1522756904', '0'), ('10123', '插件设置', 'admin', 'extend', 'addonsconfig', '10009', '3', 'extend/addonsconfig', '1', '0', '2', '', '', '', '1', '1522756904', '0'), ('10124', '客服管理', 'admin', 'Wchat', 'fansMessageManage', '335', '2', 'Wchat/fansMessageManage', '1', '0', '20', '', '', '', '1', '1522756904', '0'), ('10125', '粉丝留言', 'admin', 'wchat', 'fansMessageManage', '10156', '3', 'wchat/fansMessageManage', '1', '0', '1', '', '', '', '1', '1522756904', '0'), ('10126', '群发消息', 'admin', 'Wchat', 'sendGroupMessage', '10156', '3', 'Wchat/sendGroupMessage', '1', '0', '2', '', '', '', '1', '1522756904', '0'), ('10127', '售后服务', 'admin', 'Order', 'customerServiceList', '184', '2', 'Order/customerServiceList', '1', '0', '16', '售后服务', '', '', '1', '1522756923', '0'), ('10128', '售后详情', 'admin', 'Order', 'orderCustomerDetail', '10127', '3', 'Order/orderCustomerDetail', '0', '0', '0', '售后详情', '', '', '1', '1522756923', '0'), ('10129', '门店管理', 'admin', 'shop', 'pickuppointlist', '0', '3', 'shop/pickuppointlist', '0', '0', '0', '', '', '', '1', '1522756923', '0'), ('10130', '优惠券发放记录', 'admin', 'promotion', 'couponGrantLog', '180', '3', 'promotion/couponGrantLog', '0', '0', '0', '', '', '', '1', '1522756923', '0'), ('10135', '订单详情', 'admin', 'Orderpresell', 'orderDetail', '10131', '3', 'presellOrder/orderDetail', '1', '0', '0', '', '', '', '1', '1522756925', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_notice`
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shopid` int(11) NOT NULL COMMENT '店铺ID（单店版为0）',
  `notice_message` varchar(255) DEFAULT '' COMMENT '公告内容',
  `is_enable` tinyint(1) DEFAULT '0' COMMENT '是否启用（0：隐藏，1：显示）',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='网站公告';

-- ----------------------------
--  Records of `sys_notice`
-- ----------------------------
BEGIN;
INSERT INTO `sys_notice` VALUES ('7', '0', '', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_notice_records`
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice_records`;
CREATE TABLE `sys_notice_records` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
  `send_type` int(11) NOT NULL DEFAULT '0' COMMENT '发送类型 1 短信发送  2邮箱发送',
  `send_account` varchar(255) NOT NULL DEFAULT '' COMMENT '发送账号',
  `send_config` text NOT NULL COMMENT '发送的配置信息',
  `records_type` int(11) NOT NULL DEFAULT '0' COMMENT '记录类型  1充值成功 2确认订单 3付款成功 4下单成功 5订单发货 6商家提醒退款订单 7 商家提醒订单提醒 8充值成功',
  `notice_title` varchar(255) NOT NULL DEFAULT '' COMMENT '通知标题',
  `notice_context` text NOT NULL COMMENT '通知内容',
  `is_send` varchar(255) NOT NULL DEFAULT '0' COMMENT '是否发送  0未发送   1发送成功  2发送失败',
  `send_message` varchar(255) NOT NULL DEFAULT '' COMMENT '发送返回结果',
  `create_date` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `send_date` int(11) NOT NULL DEFAULT '0' COMMENT '发送时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='通知记录';

-- ----------------------------
--  Table structure for `sys_notice_template`
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice_template`;
CREATE TABLE `sys_notice_template` (
  `template_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '模板id',
  `template_type` varchar(50) NOT NULL DEFAULT '' COMMENT '模板类型',
  `instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `template_code` varchar(50) NOT NULL DEFAULT '' COMMENT '模板编号',
  `template_title` varchar(50) NOT NULL DEFAULT '' COMMENT '模板编号',
  `template_content` text NOT NULL COMMENT '模板名称',
  `sign_name` varchar(50) NOT NULL DEFAULT '' COMMENT '签名',
  `is_enable` int(11) NOT NULL DEFAULT '0' COMMENT '是否开启',
  `modify_time` int(11) DEFAULT '0' COMMENT '更新时间',
  `notify_type` varchar(255) NOT NULL DEFAULT '' COMMENT '通知人类型',
  `notification_mode` text NOT NULL COMMENT '通知方式',
  PRIMARY KEY (`template_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1170 COMMENT='通知模版设置';

-- ----------------------------
--  Table structure for `sys_notice_template_item`
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice_template_item`;
CREATE TABLE `sys_notice_template_item` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `item_name` varchar(50) NOT NULL DEFAULT '' COMMENT '项名称',
  `show_name` varchar(50) NOT NULL DEFAULT '' COMMENT '显示名称',
  `replace_name` varchar(50) NOT NULL DEFAULT '' COMMENT '替换字段名字',
  `type_ids` varchar(255) NOT NULL COMMENT '关联type类型',
  `order` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1820 COMMENT='通知模板项';

-- ----------------------------
--  Records of `sys_notice_template_item`
-- ----------------------------
BEGIN;
INSERT INTO `sys_notice_template_item` VALUES ('1', '商场名称', '{商场名称}', 'shopname', 'after_register,recharge_success,create_order,pay_success,confirm_order,order_deliver,order_remind,refund_order', '0'), ('2', '用户名称', '{用户名称}', 'username', 'after_register,recharge_success,create_order,pay_success,confirm_order,order_deliver,order_remind,refund_order', '1'), ('5', '商品名称', '{商品名称}', 'goodsname', 'order_deliver', '4'), ('6', '商品规格', '{商品规格}', 'goodssku', 'order_deliver', '5'), ('7', '主订单号', '{主订单号}', 'orderno', 'create_order,pay_success,confirm_order,order_deliver,order_remind,refund_order', '6'), ('8', '订单金额', '{订单金额}', 'ordermoney', 'create_order,pay_success,confirm_order,order_deliver,order_remind,refund_order', '7'), ('9', '商品金额', '{商品金额}', 'goodsmoney', 'create_order,pay_success,order_deliver', '8'), ('10', '验证码', '{验证码}', 'number', 'register_validate,forgot_password,bind_mobile,bind_email', '9'), ('11', '充值金额', '{充值金额}', 'rechargemoney', 'recharge_success', '0'), ('12', '物流公司', '{物流公司}', 'expresscompany', 'order_deliver', '0'), ('13', '快递编号', '{快递编号}', 'expressno', 'order_deliver', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_notice_template_type`
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice_template_type`;
CREATE TABLE `sys_notice_template_type` (
  `type_id` int(11) NOT NULL AUTO_INCREMENT,
  `template_name` varchar(50) NOT NULL DEFAULT '' COMMENT '模板名称',
  `template_code` varchar(50) NOT NULL DEFAULT '' COMMENT '模板编号',
  `template_type` varchar(50) NOT NULL DEFAULT '' COMMENT '模板类型',
  `notify_type` varchar(255) NOT NULL DEFAULT '' COMMENT '通知人类型',
  PRIMARY KEY (`type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2340 COMMENT='通知模板类型';

-- ----------------------------
--  Records of `sys_notice_template_type`
-- ----------------------------
BEGIN;
INSERT INTO `sys_notice_template_type` VALUES ('1', '注册成功', 'after_register', 'all', 'user'), ('2', '注册验证', 'register_validate', 'all', 'user'), ('3', '充值成功', 'recharge_success', 'all', 'user'), ('4', '确认订单', 'confirm_order', 'all', 'user'), ('5', '付款成功', 'pay_success', 'all', 'user'), ('6', '下单成功', 'create_order', 'all', 'user'), ('7', '订单发货', 'order_deliver', 'all', 'user'), ('8', '找回密码', 'forgot_password', 'all', 'user'), ('9', '手机绑定', 'bind_mobile', 'sms', 'user'), ('10', '邮箱绑定', 'bind_email', 'email', 'user'), ('11', '退款订单', 'refund_order', 'all', 'business'), ('12', '订单提醒', 'order_remind', 'all', 'business'), ('13', '充值成功', 'recharge_success', 'all', 'business');
COMMIT;

-- ----------------------------
--  Table structure for `sys_province`
-- ----------------------------
DROP TABLE IF EXISTS `sys_province`;
CREATE TABLE `sys_province` (
  `province_id` int(11) NOT NULL AUTO_INCREMENT,
  `area_id` tinyint(4) NOT NULL DEFAULT '0',
  `province_name` varchar(255) NOT NULL DEFAULT '',
  `sort` int(10) NOT NULL DEFAULT '0',
  PRIMARY KEY (`province_id`),
  KEY `IDX_g_province_ProvinceName` (`province_name`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=481;

-- ----------------------------
--  Records of `sys_province`
-- ----------------------------
BEGIN;
INSERT INTO `sys_province` VALUES ('1', '2', '北京市', '1'), ('2', '2', '天津市', '0'), ('3', '2', '河北省', '0'), ('4', '2', '山西省', '0'), ('5', '2', '内蒙古自治区', '0'), ('6', '5', '辽宁省', '0'), ('7', '5', '吉林省', '0'), ('8', '5', '黑龙江省', '0'), ('9', '1', '上海市', '0'), ('10', '1', '江苏省', '0'), ('11', '1', '浙江省', '0'), ('12', '1', '安徽省', '0'), ('13', '3', '福建省', '0'), ('14', '1', '江西省', '0'), ('15', '2', '山东省', '0'), ('16', '4', '河南省', '0'), ('17', '4', '湖北省', '0'), ('18', '4', '湖南省', '0'), ('19', '3', '广东省', '0'), ('20', '3', '广西壮族自治区', '0'), ('21', '3', '海南省', '0'), ('22', '7', '重庆市', '0'), ('23', '7', '四川省', '0'), ('24', '7', '贵州省', '0'), ('25', '7', '云南省', '0'), ('26', '7', '西藏自治区', '0'), ('27', '6', '陕西省', '0'), ('28', '6', '甘肃省', '0'), ('29', '6', '青海省', '0'), ('30', '6', '宁夏回族自治区', '0'), ('31', '6', '新疆维吾尔自治区', '0'), ('32', '8', '香港特别行政区', '0'), ('33', '8', '澳门特别行政区', '0'), ('34', '8', '台湾省', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_shortcut_menu`
-- ----------------------------
DROP TABLE IF EXISTS `sys_shortcut_menu`;
CREATE TABLE `sys_shortcut_menu` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所属用户',
  `shop_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所属店铺',
  `sort` int(11) NOT NULL DEFAULT '0',
  `module_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '模块id',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='快捷菜单';

-- ----------------------------
--  Table structure for `sys_url_route`
-- ----------------------------
DROP TABLE IF EXISTS `sys_url_route`;
CREATE TABLE `sys_url_route` (
  `routeid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `rule` varchar(255) NOT NULL DEFAULT '' COMMENT '伪静态路由规则',
  `route` varchar(255) NOT NULL DEFAULT '' COMMENT '路由地址',
  `is_open` int(1) NOT NULL DEFAULT '1' COMMENT '是否启用',
  `is_system` int(1) NOT NULL DEFAULT '0' COMMENT '是否是系统默认',
  `route_model` tinyint(4) NOT NULL DEFAULT '1' COMMENT '配置伪静态使用的模块1.shop2.wap3.admin',
  `remark` text NOT NULL COMMENT '简介',
  PRIMARY KEY (`routeid`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2340 COMMENT='系统伪静态路由';

-- ----------------------------
--  Records of `sys_url_route`
-- ----------------------------
BEGIN;
INSERT INTO `sys_url_route` VALUES ('1', 'goods', 'shop/goods/goodsinfo', '1', '1', '1', ''), ('2', 'list', 'shop/goods/goodslist', '1', '1', '1', ''), ('3', 'brands', 'shop/goods/brandlist', '1', '1', '1', ''), ('4', 'integralcenter', 'shop/goods/integralcenter', '1', '1', '1', ''), ('5', 'discount', 'shop/index/discount', '1', '1', '1', ''), ('7', 'membercenter', 'shop/member/index', '1', '0', '1', ''), ('8', 'article', 'shop/cms/articleclassinfo', '1', '1', '1', '文章详情');
COMMIT;

-- ----------------------------
--  Table structure for `sys_user`
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
  `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '实例信息',
  `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '用户名',
  `user_password` varchar(255) NOT NULL DEFAULT '' COMMENT '用户密码（MD5）',
  `user_status` int(11) NOT NULL DEFAULT '1' COMMENT '用户状态  用户状态默认为1',
  `user_headimg` varchar(255) NOT NULL DEFAULT '' COMMENT '用户头像',
  `is_system` int(1) NOT NULL DEFAULT '0' COMMENT '是否是系统后台用户 0 不是 1 是',
  `is_member` int(11) NOT NULL DEFAULT '0' COMMENT '是否是前台会员',
  `user_tel` varchar(20) NOT NULL DEFAULT '' COMMENT '手机号',
  `user_tel_bind` int(1) NOT NULL DEFAULT '0' COMMENT '手机号是否绑定 0 未绑定 1 绑定 ',
  `user_qq` varchar(255) DEFAULT '' COMMENT 'qq号',
  `qq_openid` varchar(255) NOT NULL DEFAULT '' COMMENT 'qq互联id',
  `qq_info` varchar(2000) NOT NULL DEFAULT '' COMMENT 'qq账号相关信息',
  `user_email` varchar(50) NOT NULL DEFAULT '' COMMENT '邮箱',
  `user_email_bind` int(1) NOT NULL DEFAULT '0' COMMENT '是否邮箱绑定',
  `wx_openid` varchar(255) DEFAULT NULL COMMENT '微信用户openid',
  `wx_is_sub` int(1) NOT NULL DEFAULT '0' COMMENT '微信用户是否关注',
  `wx_info` varchar(2000) DEFAULT NULL COMMENT '微信用户信息',
  `other_info` varchar(255) DEFAULT NULL COMMENT '附加信息',
  `current_login_ip` varchar(255) DEFAULT NULL COMMENT '当前登录ip',
  `current_login_type` int(11) DEFAULT NULL COMMENT '当前登录的操作终端类型',
  `last_login_ip` varchar(255) DEFAULT NULL COMMENT '上次登录ip',
  `last_login_type` int(11) DEFAULT NULL COMMENT '上次登录的操作终端类型',
  `login_num` int(11) NOT NULL DEFAULT '0' COMMENT '登录次数',
  `real_name` varchar(50) DEFAULT '' COMMENT '真实姓名',
  `sex` smallint(6) DEFAULT '0' COMMENT '性别 0保密 1男 2女',
  `location` varchar(255) DEFAULT '' COMMENT '所在地',
  `nick_name` varchar(50) DEFAULT '牛酷用户' COMMENT '用户昵称',
  `wx_unionid` varchar(255) NOT NULL DEFAULT '' COMMENT '微信unionid',
  `qrcode_template_id` int(11) NOT NULL DEFAULT '0' COMMENT '模板id',
  `wx_sub_time` int(11) DEFAULT '0' COMMENT '微信用户关注时间',
  `wx_notsub_time` int(11) DEFAULT '0' COMMENT '微信用户取消关注时间',
  `reg_time` int(11) DEFAULT '0' COMMENT '注册时间',
  `current_login_time` int(11) DEFAULT '0' COMMENT '当前登录时间',
  `last_login_time` int(11) DEFAULT '0' COMMENT '上次登录时间',
  `birthday` int(11) DEFAULT '0',
  `parent_id` int(11) DEFAULT NULL,
  `parent_path` varchar(255) DEFAULT NULL,
  `team_number` int(10) DEFAULT '0' COMMENT '团队人数',
  `recommend_number` int(10) DEFAULT '0' COMMENT '直推人数',
  PRIMARY KEY (`uid`),
  KEY `IDX_sys_user_user_email` (`user_email`),
  KEY `IDX_sys_user_user_name` (`user_name`),
  KEY `IDX_sys_user_user_password` (`user_password`),
  KEY `IDX_sys_user_user_tel` (`user_tel`),
  KEY `IDX_sys_user_wx_openid` (`wx_openid`),
  KEY `IDX_sys_user_wx_unionid` (`wx_unionid`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=372 COMMENT='系统用户表';

-- ----------------------------
--  Records of `sys_user`
-- ----------------------------
BEGIN;
INSERT INTO `sys_user` VALUES ('2', '0', 'admin', '21232f297a57a5a743894a0e4a801fc3', '1', '', '1', '1', '', '0', '', '', '', '', '0', null, '0', null, null, '0.0.0.0', '1', '', '0', '1', '', '0', '', '牛酷用户', '', '0', '0', '0', '2019', '1548752680', '0', '0', null, null, '0', '0'), ('3', '0', 'lvdoubaobao', 'e10adc3949ba59abbe56e057f20f883e', '1', '', '0', '1', '15036158397', '0', '', '', '', '736400469@qq.com', '0', '', '0', '', '', '0.0.0.0', '1', '0.0.0.0', '1', '15', '', '1', '', '1111', '', '0', '0', '0', '1549199816', '1549204219', '1549202953', '0', null, null, '0', '1'), ('4', '0', 'hahah', 'e10adc3949ba59abbe56e057f20f883e', '1', '', '0', '1', '', '0', '', '', '', '', '0', '', '0', '', '', '0.0.0.0', '1', '', '0', '1', '', '0', '', 'hahah', '', '0', '0', '0', '1550568628', '1550568628', '0', '0', '3', '0,3', '0', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_user_admin`
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_admin`;
CREATE TABLE `sys_user_admin` (
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT 'user用户ID',
  `admin_name` varchar(50) NOT NULL DEFAULT '' COMMENT '用户姓名',
  `group_id_array` int(11) NOT NULL DEFAULT '0' COMMENT '系统用户组',
  `is_admin` int(1) NOT NULL DEFAULT '0' COMMENT '是否是系统管理员组',
  `admin_status` int(11) DEFAULT '1' COMMENT '状态 默认为1',
  `desc` text COMMENT '附加信息',
  PRIMARY KEY (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=910 COMMENT='后台管理员表';

-- ----------------------------
--  Records of `sys_user_admin`
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_admin` VALUES ('2', '管理员', '2', '1', '1', null);
COMMIT;

-- ----------------------------
--  Table structure for `sys_user_group`
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_group`;
CREATE TABLE `sys_user_group` (
  `group_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `instance_id` int(11) NOT NULL DEFAULT '1' COMMENT '实例ID',
  `group_name` varchar(50) NOT NULL DEFAULT '' COMMENT '用户组名称',
  `group_status` int(11) NOT NULL DEFAULT '1' COMMENT '用户组状态',
  `is_system` int(1) NOT NULL DEFAULT '0' COMMENT '是否是系统用户组',
  `module_id_array` text NOT NULL COMMENT '系统模块ID组，用，隔开',
  `desc` text COMMENT '描述',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=963 COMMENT='系统用户组表';

-- ----------------------------
--  Records of `sys_user_group`
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_group` VALUES ('2', '0', '管理员组', '1', '1', '120,121,122,123,126,127,128,129,133,137,139,144,145,149,151,169,170,171,172,176,179,180,184,185,186,187,189,190,191,192,194,195,196,197,198,199,200,201,202,203,210,218,221,334,335,336,339,340,341,342,343,358,359,360,361,381,382,383,387,388,389,390,392,394,395,403,405,409,418,419,420,421,422,423,424,425,427,430,431,432,433,434,436,437,439,440,441,442,443,444,445,446,447,450,451,452,454,455,456,457,459,460,461,462,463,469,471,472,474,477,478,479,480,481,482,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499,501,502,503,504,506,509,510,512,513,518,519,520,521,522,523,524,525,526,527,528,529,530,10001,10002,10003,10004,10005,10006,10007,10009,10010,10011,10012,10013,10014,10015,10016,10017,10018,10019,10021,10023,10024,10075,10077,10078,10079,10080,10081,10082,10083,10084,10085,10086,10087,10096,10097,10101,10103,10104,10105,10106,10113,10119,10120,10121,10122,10123,10124,10125,10126,10127,10128,10129,10130,10135', null, '2019', '0');
COMMIT;

-- ----------------------------
--  Table structure for `sys_user_log`
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_log`;
CREATE TABLE `sys_user_log` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '操作用户ID',
  `user_name` varchar(255) NOT NULL DEFAULT '' COMMENT '用户名称',
  `is_system` int(11) NOT NULL DEFAULT '1' COMMENT '是否是后台操作',
  `url` varchar(255) NOT NULL DEFAULT '' COMMENT '对应url',
  `controller` varchar(255) NOT NULL DEFAULT '' COMMENT '操作控制器',
  `method` varchar(255) NOT NULL DEFAULT '' COMMENT '操作方案',
  `data` text COMMENT '传输数据',
  `ip` varchar(255) DEFAULT NULL COMMENT 'ip地址',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=82 COMMENT='用户操作日志';

-- ----------------------------
--  Records of `sys_user_log`
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_log` VALUES ('1', '2', '牛酷用户', '1', 'http://niushop.test:800/index.php?s=/admin/login/login', '用户', '用户登录', '', '0.0.0.0', '1548752680'), ('2', '2', '牛酷用户', '1', 'http://niushop.test:800/index.php?s=/admin/goods/addgoodscategory', '商品', '添加商品分类', '添加商品分类:测试分类', '0.0.0.0', '1549117429'), ('3', '2', '牛酷用户', '1', 'http://niushop.test:800/index.php?s=/admin/goods/updategoodscategory', '商品', '修改商品分类', '修改商品分类:测试分类', '0.0.0.0', '1549117514'), ('4', '2', '牛酷用户', '1', 'http://niushop.test:800/index.php?s=/admin/goods/GoodsCreateOrUpdate', '商品', '添加商品', '添加商品:测试商品', '0.0.0.0', '1549117622'), ('5', '2', '牛酷用户', '1', 'http://niushop.test:800/index.php?s=/admin/goods/GoodsCreateOrUpdate', '商品', '修改商品', '修改商品:测试商品', '0.0.0.0', '1549118039'), ('6', '2', '牛酷用户', '1', 'http://niushop.test:800/index.php?s=/admin/goods/GoodsCreateOrUpdate', '商品', '修改商品', '修改商品:测试商品', '0.0.0.0', '1549198915');
COMMIT;

-- ----------------------------
--  Table structure for `sys_version_devolution`
-- ----------------------------
DROP TABLE IF EXISTS `sys_version_devolution`;
CREATE TABLE `sys_version_devolution` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `devolution_username` varchar(255) NOT NULL DEFAULT '' COMMENT '授权账户',
  `devolution_password` varchar(255) NOT NULL DEFAULT '' COMMENT '授权密码',
  `create_date` int(11) DEFAULT '0' COMMENT '更新时间',
  `devolution_code` varchar(255) NOT NULL DEFAULT '' COMMENT '授权码',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='用户授权信息';

-- ----------------------------
--  Table structure for `sys_version_patch`
-- ----------------------------
DROP TABLE IF EXISTS `sys_version_patch`;
CREATE TABLE `sys_version_patch` (
  `patch_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `patch_type` int(11) NOT NULL DEFAULT '1' COMMENT '补丁类型  1. B2C单用户商城 2.B2C 单用户分销商城 3 B2B2C多用户商城',
  `patch_type_name` varchar(50) NOT NULL DEFAULT '' COMMENT '补丁类型名称',
  `patch_release` varchar(50) NOT NULL DEFAULT '' COMMENT '补丁编号',
  `patch_name` varchar(255) NOT NULL DEFAULT '' COMMENT '补丁标题',
  `patch_no` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '版本号',
  `patch_file_name` varchar(50) NOT NULL DEFAULT '' COMMENT '补丁文件名称',
  `patch_log` text NOT NULL COMMENT '版本补丁更新日志',
  `patch_file_size` varchar(255) NOT NULL DEFAULT '' COMMENT '补丁文件大小',
  `is_up` int(11) NOT NULL DEFAULT '2' COMMENT '是否升级  1代表已升级  0未升级 2全部',
  `modify_date` int(11) DEFAULT '0' COMMENT '更新时间',
  `patch_download_url` varchar(255) NOT NULL DEFAULT '' COMMENT '更新地址',
  `is_new_update` int(11) NOT NULL DEFAULT '0' COMMENT '是否为最新的更新版本',
  `from_version` varchar(255) NOT NULL DEFAULT '' COMMENT '在多少版本之上升级',
  PRIMARY KEY (`patch_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='版本补丁管理';

-- ----------------------------
--  Table structure for `sys_version_update_records`
-- ----------------------------
DROP TABLE IF EXISTS `sys_version_update_records`;
CREATE TABLE `sys_version_update_records` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `auth_no` varchar(255) NOT NULL DEFAULT '' COMMENT '授权码',
  `update_type` int(11) NOT NULL DEFAULT '1' COMMENT '更新方式1. 线下2.在线',
  `version` varchar(50) NOT NULL DEFAULT '' COMMENT '当前版本',
  `update_version` varchar(255) NOT NULL DEFAULT '' COMMENT '升级版本',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
  `version_type` varchar(255) NOT NULL DEFAULT 'b2c' COMMENT '升级版本',
  `remark` text NOT NULL COMMENT '更新说明',
  `is_complete` int(11) NOT NULL DEFAULT '0' COMMENT '是否更新完成',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='版本升级记录表';

-- ----------------------------
--  Table structure for `sys_wap_custom_template`
-- ----------------------------
DROP TABLE IF EXISTS `sys_wap_custom_template`;
CREATE TABLE `sys_wap_custom_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `template_name` varchar(250) DEFAULT '' COMMENT '自定义模板名称（暂时预留）',
  `template_data` longtext COMMENT '模板数据（JSON格式）',
  `create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间戳',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间戳',
  `is_enable` int(11) NOT NULL DEFAULT '0' COMMENT '是否启用 0 不启用 1 启用',
  `is_default` int(11) DEFAULT '0' COMMENT '是否为默认模板 0 不是 1 是',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='手机端自定义模板';

-- ----------------------------
--  Table structure for `sys_web_style`
-- ----------------------------
DROP TABLE IF EXISTS `sys_web_style`;
CREATE TABLE `sys_web_style` (
  `style_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `style_name` varchar(50) NOT NULL DEFAULT '' COMMENT '样式名称',
  `style_path` varchar(255) NOT NULL DEFAULT '' COMMENT '样式路径',
  `stye_img` varchar(255) NOT NULL DEFAULT '' COMMENT '样式图片路径',
  `desc` text COMMENT '备注',
  `type` int(11) DEFAULT '1' COMMENT '1：前台样式，2：后台样式',
  `create_time` int(11) DEFAULT '0' COMMENT '创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改时间',
  PRIMARY KEY (`style_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='网站前台样式表';

-- ----------------------------
--  Records of `sys_web_style`
-- ----------------------------
BEGIN;
INSERT INTO `sys_web_style` VALUES ('1', '热情洋溢', 'default', '', null, '1', '0', '0'), ('2', '蓝色清爽', 'blue', '', null, '1', '0', '0'), ('4', '简约版', 'adminblue', '', '', '2', '1500608775', '1500608775');
COMMIT;

-- ----------------------------
--  Table structure for `sys_website`
-- ----------------------------
DROP TABLE IF EXISTS `sys_website`;
CREATE TABLE `sys_website` (
  `website_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
  `title` varchar(255) NOT NULL DEFAULT '' COMMENT '网站标题',
  `logo` varchar(255) NOT NULL DEFAULT '' COMMENT '网站logo',
  `web_desc` varchar(1000) NOT NULL DEFAULT '' COMMENT '网站描述',
  `key_words` varchar(255) NOT NULL DEFAULT '' COMMENT '网站关键字',
  `web_icp` varchar(255) NOT NULL DEFAULT '' COMMENT '网站备案号',
  `style_id_pc` int(10) NOT NULL DEFAULT '2' COMMENT '前台网站风格（1：热情洋溢模板，2：蓝色清爽版）',
  `web_address` varchar(255) NOT NULL DEFAULT '' COMMENT '网站联系地址',
  `web_qrcode` varchar(255) NOT NULL DEFAULT '' COMMENT '网站公众号二维码',
  `web_url` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺网址',
  `web_email` varchar(255) NOT NULL DEFAULT '' COMMENT '网站邮箱',
  `web_phone` varchar(255) NOT NULL DEFAULT '' COMMENT '网站联系方式',
  `web_qq` varchar(255) NOT NULL DEFAULT '' COMMENT '网站qq号',
  `web_weixin` varchar(255) NOT NULL DEFAULT '' COMMENT '网站微信号',
  `web_status` int(10) NOT NULL DEFAULT '1' COMMENT '网站运营状态1.开启 2.关闭 ',
  `third_count` text NOT NULL COMMENT '第三方统计',
  `close_reason` varchar(255) NOT NULL DEFAULT '' COMMENT '站点关闭原因',
  `wap_status` int(10) NOT NULL DEFAULT '1' COMMENT '手机端运营状态 1.开启2.关闭',
  `style_id_admin` int(10) DEFAULT '4' COMMENT '后台网站风格（3：旧模板，4：新模板）',
  `create_time` int(11) DEFAULT '0' COMMENT '网站创建时间',
  `modify_time` int(11) DEFAULT '0' COMMENT '网站修改时间',
  `url_type` int(11) NOT NULL DEFAULT '0' COMMENT '网站访问模式',
  `web_popup_title` varchar(50) NOT NULL DEFAULT '' COMMENT '网站弹出框标题',
  `web_wechat_share_logo` varchar(255) NOT NULL DEFAULT '' COMMENT '微信分享logo',
  `web_gov_record` varchar(60) NOT NULL DEFAULT '' COMMENT '网站公安备案信息',
  `web_gov_record_url` varchar(255) NOT NULL DEFAULT '' COMMENT '网站公安备案跳转链接地址',
  `is_show_follow` smallint(1) NOT NULL DEFAULT '1' COMMENT 'wap端是否显示顶部关注',
  PRIMARY KEY (`website_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='网站信息表';

-- ----------------------------
--  Records of `sys_website`
-- ----------------------------
BEGIN;
INSERT INTO `sys_website` VALUES ('1', '顺慈商城', 'public/static/images/default_img_url/logo.png', '开源商城', '', '', '1', '山西省太原市', 'public/static/images/default_img_url/qrcode.png', 'http://www.niushop.com.cn/', '', '400-886-7993', '', '', '3', '', '对不起，顺慈商城维护中，大家敬请期待...', '1', '4', '1477452112', '1549100383', '0', '', '', '', '', '1');
COMMIT;

-- ----------------------------
--  Table structure for `sys_weixin_auth`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_auth`;
CREATE TABLE `sys_weixin_auth` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `authorizer_appid` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺的appid  授权之后不用刷新',
  `authorizer_refresh_token` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺授权之后的刷新token，每月刷新',
  `authorizer_access_token` varchar(255) NOT NULL DEFAULT '' COMMENT '店铺的公众号token，只有2小时',
  `func_info` varchar(1000) NOT NULL DEFAULT '' COMMENT '授权项目',
  `nick_name` varchar(50) NOT NULL DEFAULT '' COMMENT '公众号昵称',
  `head_img` varchar(255) NOT NULL DEFAULT '' COMMENT '公众号头像url',
  `user_name` varchar(50) NOT NULL DEFAULT '' COMMENT '公众号原始账号',
  `alias` varchar(255) NOT NULL DEFAULT '' COMMENT '公众号原始名称',
  `qrcode_url` varchar(255) NOT NULL DEFAULT '' COMMENT '公众号二维码url',
  `auth_time` int(11) DEFAULT '0' COMMENT '授权时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=8192 COMMENT='店铺(实例)微信公众账号授权';

-- ----------------------------
--  Table structure for `sys_weixin_default_replay`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_default_replay`;
CREATE TABLE `sys_weixin_default_replay` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `instance_id` int(11) NOT NULL COMMENT '店铺id',
  `reply_media_id` int(11) NOT NULL COMMENT '回复媒体内容id',
  `sort` int(11) NOT NULL,
  `create_time` int(11) DEFAULT '0',
  `modify_time` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='关注时回复';

-- ----------------------------
--  Table structure for `sys_weixin_fans`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_fans`;
CREATE TABLE `sys_weixin_fans` (
  `fans_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '粉丝ID',
  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '会员编号ID',
  `source_uid` int(11) NOT NULL DEFAULT '0' COMMENT '推广人uid',
  `instance_id` int(11) NOT NULL COMMENT '店铺ID',
  `nickname` varchar(255) NOT NULL COMMENT '昵称',
  `nickname_decode` varchar(255) DEFAULT '',
  `headimgurl` varchar(500) NOT NULL DEFAULT '' COMMENT '头像',
  `sex` smallint(6) NOT NULL DEFAULT '1' COMMENT '性别',
  `language` varchar(20) NOT NULL DEFAULT '' COMMENT '用户语言',
  `country` varchar(60) NOT NULL DEFAULT '' COMMENT '国家',
  `province` varchar(255) NOT NULL DEFAULT '' COMMENT '省',
  `city` varchar(255) NOT NULL DEFAULT '' COMMENT '城市',
  `district` varchar(255) NOT NULL DEFAULT '' COMMENT '行政区/县',
  `openid` varchar(255) NOT NULL DEFAULT '' COMMENT '用户的标识，对当前公众号唯一     用户的唯一身份ID',
  `unionid` varchar(255) NOT NULL DEFAULT '' COMMENT '粉丝unionid',
  `groupid` int(11) NOT NULL DEFAULT '0' COMMENT '粉丝所在组id',
  `is_subscribe` bigint(1) NOT NULL DEFAULT '1' COMMENT '是否订阅',
  `memo` varchar(255) NOT NULL COMMENT '备注',
  `subscribe_date` int(11) DEFAULT '0' COMMENT '订阅时间',
  `unsubscribe_date` int(11) DEFAULT '0' COMMENT '解订阅时间',
  `update_date` int(11) DEFAULT '0' COMMENT '粉丝信息最后更新时间',
  PRIMARY KEY (`fans_id`),
  KEY `IDX_sys_weixin_fans_openid` (`openid`),
  KEY `IDX_sys_weixin_fans_unionid` (`unionid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1638 COMMENT='微信公众号获取粉丝列表';

-- ----------------------------
--  Table structure for `sys_weixin_follow_replay`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_follow_replay`;
CREATE TABLE `sys_weixin_follow_replay` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `instance_id` int(11) NOT NULL COMMENT '店铺id',
  `reply_media_id` int(11) NOT NULL COMMENT '回复媒体内容id',
  `sort` int(11) NOT NULL,
  `create_time` int(11) DEFAULT '0',
  `modify_time` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='关注时回复';

-- ----------------------------
--  Table structure for `sys_weixin_functions_button`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_functions_button`;
CREATE TABLE `sys_weixin_functions_button` (
  `button_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
  `instance_id` int(11) NOT NULL COMMENT '实例',
  `button_name` varchar(50) NOT NULL DEFAULT '' COMMENT '模块名',
  `keyname` varchar(20) NOT NULL DEFAULT '' COMMENT '触发关键词',
  `url` varchar(255) NOT NULL DEFAULT '' COMMENT '触发网址',
  `hits` int(11) NOT NULL DEFAULT '0' COMMENT '触发次数',
  `is_enabled` int(1) NOT NULL DEFAULT '1' COMMENT '是否启用',
  `is_system` int(1) DEFAULT '0',
  `orders` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
  `create_time` int(11) DEFAULT '0' COMMENT '创建日期',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改日期',
  PRIMARY KEY (`button_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1489 COMMENT='微信功能按钮';

-- ----------------------------
--  Table structure for `sys_weixin_instance_msg`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_instance_msg`;
CREATE TABLE `sys_weixin_instance_msg` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `instance_id` int(11) NOT NULL COMMENT '店铺id（单店版为0）',
  `template_no` varchar(55) NOT NULL COMMENT '模版编号',
  `template_id` varbinary(55) DEFAULT NULL COMMENT '微信模板消息的ID',
  `title` varchar(100) NOT NULL COMMENT '模版标题',
  `is_enable` bit(1) DEFAULT b'0' COMMENT '是否启用',
  `headtext` varchar(255) NOT NULL COMMENT '头部文字',
  `bottomtext` varchar(255) NOT NULL COMMENT '底部文字',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=4096 COMMENT='微信实例消息';

-- ----------------------------
--  Table structure for `sys_weixin_key_replay`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_key_replay`;
CREATE TABLE `sys_weixin_key_replay` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `instance_id` int(11) NOT NULL COMMENT '店铺id',
  `key` varchar(255) NOT NULL COMMENT '关键词',
  `match_type` tinyint(4) NOT NULL COMMENT '匹配类型1模糊匹配2全部匹配',
  `reply_media_id` int(11) NOT NULL COMMENT '回复媒体内容id',
  `sort` int(11) NOT NULL,
  `create_time` int(11) DEFAULT '0',
  `modify_time` int(11) DEFAULT '0',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=16384 COMMENT='关键词回复';

-- ----------------------------
--  Table structure for `sys_weixin_media`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_media`;
CREATE TABLE `sys_weixin_media` (
  `media_id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '图文消息id',
  `title` varchar(100) DEFAULT NULL,
  `instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '实例id店铺id',
  `type` varchar(255) NOT NULL DEFAULT '1' COMMENT '类型1文本(项表无内容) 2单图文 3多图文',
  `sort` int(11) NOT NULL DEFAULT '0',
  `create_time` int(11) DEFAULT '0' COMMENT '创建日期',
  `modify_time` int(11) DEFAULT '0' COMMENT '修改日期',
  PRIMARY KEY (`media_id`),
  UNIQUE KEY `id` (`media_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1170;

-- ----------------------------
--  Table structure for `sys_weixin_media_item`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_media_item`;
CREATE TABLE `sys_weixin_media_item` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
  `media_id` int(11) NOT NULL COMMENT '图文消息id',
  `title` varchar(100) DEFAULT NULL,
  `author` varchar(50) NOT NULL COMMENT '作者',
  `cover` varchar(200) NOT NULL COMMENT '图文消息封面',
  `show_cover_pic` tinyint(4) NOT NULL DEFAULT '1' COMMENT '封面图片显示在正文中',
  `summary` text,
  `content` text NOT NULL COMMENT '正文',
  `content_source_url` varchar(200) NOT NULL DEFAULT '' COMMENT '图文消息的原文地址，即点击“阅读原文”后的URL',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序号',
  `hits` int(11) NOT NULL DEFAULT '0' COMMENT '阅读次数',
  PRIMARY KEY (`id`),
  KEY `id` (`media_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=712;

-- ----------------------------
--  Table structure for `sys_weixin_menu`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_menu`;
CREATE TABLE `sys_weixin_menu` (
  `menu_id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `menu_name` varchar(50) NOT NULL DEFAULT '' COMMENT '菜单名称',
  `ico` varchar(32) NOT NULL DEFAULT '' COMMENT '菜图标单',
  `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父菜单',
  `menu_event_type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1普通url 2 图文素材 3 功能',
  `media_id` int(11) NOT NULL DEFAULT '0' COMMENT '图文消息ID',
  `menu_event_url` varchar(255) NOT NULL DEFAULT '' COMMENT '菜单url',
  `hits` int(11) NOT NULL DEFAULT '0' COMMENT '触发数',
  `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `create_date` int(11) DEFAULT '0' COMMENT '创建日期',
  `modify_date` int(11) DEFAULT '0' COMMENT '修改日期',
  PRIMARY KEY (`menu_id`),
  KEY `IDX_biz_shop_menu_orders` (`sort`),
  KEY `IDX_biz_shop_menu_shopId` (`instance_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=1638 COMMENT='微设置->微店菜单';

-- ----------------------------
--  Table structure for `sys_weixin_msg_template`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_msg_template`;
CREATE TABLE `sys_weixin_msg_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `template_no` varchar(55) NOT NULL COMMENT '编号',
  `title` varchar(100) NOT NULL COMMENT '标题',
  `contents` varchar(255) NOT NULL DEFAULT '' COMMENT '内容示例',
  `template_id` varchar(55) DEFAULT '' COMMENT '模版id',
  `headtext` varchar(255) DEFAULT NULL COMMENT '头部文字',
  `bottomtext` varchar(255) DEFAULT NULL COMMENT '底部文字',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信消息模版';

-- ----------------------------
--  Table structure for `sys_weixin_qrcode_template`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_qrcode_template`;
CREATE TABLE `sys_weixin_qrcode_template` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '实例ID',
  `instance_id` int(11) NOT NULL DEFAULT '0' COMMENT '店铺id',
  `background` varchar(255) NOT NULL DEFAULT '' COMMENT '背景图片',
  `nick_font_color` varchar(255) NOT NULL DEFAULT '#000' COMMENT '昵称字体颜色',
  `nick_font_size` smallint(6) NOT NULL DEFAULT '12' COMMENT '昵称字体大小',
  `is_logo_show` smallint(6) NOT NULL DEFAULT '1' COMMENT 'logo是否显示',
  `header_left` varchar(6) NOT NULL DEFAULT '0px' COMMENT '头部左边距',
  `header_top` varchar(6) NOT NULL DEFAULT '0px' COMMENT '头部上边距',
  `name_left` varchar(6) NOT NULL DEFAULT '0px' COMMENT '昵称左边距',
  `name_top` varchar(6) NOT NULL DEFAULT '0px' COMMENT '昵称上边距',
  `logo_left` varchar(6) NOT NULL DEFAULT '0px' COMMENT 'logo左边距',
  `logo_top` varchar(6) NOT NULL DEFAULT '0px' COMMENT 'logo上边距',
  `code_left` varchar(6) NOT NULL DEFAULT '0px' COMMENT '二维码左边距',
  `code_top` varchar(6) NOT NULL DEFAULT '0px' COMMENT '二维码上边距',
  `is_check` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否默认',
  `is_remove` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否删除  0未删除 1删除',
  `template_url` varchar(255) NOT NULL DEFAULT '' COMMENT '模板样式路径',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=5461 COMMENT='微信推广二维码模板管理';

-- ----------------------------
--  Records of `sys_weixin_qrcode_template`
-- ----------------------------
BEGIN;
INSERT INTO `sys_weixin_qrcode_template` VALUES ('1', '0', 'public/static/images/qrcode_bg/qrcode_bg.png', '#2b2b2b', '23', '1', '93px', '467px', '159px', '479px', '98px', '319px', '89px', '88px', '1', '0', 'public/static/images/qrcode_bg/template_bg_img.png');
COMMIT;

-- ----------------------------
--  Table structure for `sys_weixin_user_msg`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_user_msg`;
CREATE TABLE `sys_weixin_user_msg` (
  `msg_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `uid` int(11) NOT NULL,
  `msg_type` varchar(255) NOT NULL,
  `content` text,
  `is_replay` int(11) NOT NULL DEFAULT '0' COMMENT '是否回复',
  `create_time` int(11) DEFAULT '0',
  `openid` varchar(255) NOT NULL DEFAULT '' COMMENT '粉丝openid',
  `nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '昵称',
  `headimgurl` varchar(500) NOT NULL DEFAULT '' COMMENT '头像',
  PRIMARY KEY (`msg_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信用户消息表';

-- ----------------------------
--  Table structure for `sys_weixin_user_msg_replay`
-- ----------------------------
DROP TABLE IF EXISTS `sys_weixin_user_msg_replay`;
CREATE TABLE `sys_weixin_user_msg_replay` (
  `replay_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `msg_id` int(11) NOT NULL,
  `replay_uid` int(11) NOT NULL COMMENT '当前客服uid',
  `replay_type` varchar(255) NOT NULL,
  `content` text,
  `replay_time` int(11) DEFAULT '0',
  `nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '昵称',
  PRIMARY KEY (`replay_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信用户消息回复表';

-- ----------------------------
--  Table structure for `sys_wexin_onekeysubscribe`
-- ----------------------------
DROP TABLE IF EXISTS `sys_wexin_onekeysubscribe`;
CREATE TABLE `sys_wexin_onekeysubscribe` (
  `instance_id` int(11) NOT NULL COMMENT '实例ID',
  `url` varchar(300) NOT NULL DEFAULT '' COMMENT '一键关注url',
  PRIMARY KEY (`instance_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AVG_ROW_LENGTH=2048 COMMENT='微信一键关注设置';

SET FOREIGN_KEY_CHECKS = 1;
